| View previous topic :: View next topic |
| Author |
Message |
Womanizer Grandmaster Cheater
Reputation: 2
Joined: 30 May 2009 Posts: 958
|
Posted: Tue Feb 16, 2010 12:51 pm Post subject: |
|
|
| SwallowIt wrote: | | Save the textbox text as a html file and load it in a web browser control? Common sense. |
Tryed that, didn't work.
|
|
| Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Tue Feb 16, 2010 12:55 pm Post subject: |
|
|
Then you did it wrong. Here's some quick example code(May not be entirely correct) | Code: | | webbrowser1.navigate(application.location + "\previewfile.html"); | Just use the same technique to save the html file as you do when you save text files, just change the extension to html.
|
|
| Back to top |
|
 |
Womanizer Grandmaster Cheater
Reputation: 2
Joined: 30 May 2009 Posts: 958
|
Posted: Tue Feb 16, 2010 1:03 pm Post subject: |
|
|
| SwallowIt wrote: | Then you did it wrong. Here's some quick example code(May not be entirely correct) | Code: | | webbrowser1.navigate(application.location + "\previewfile.html"); | Just use the same technique to save the html file as you do when you save text files, just change the extension to html. |
Did that but it shows
| Code: | Navigation to the webpage was canceled
What you can try:
Refresh the page.
|
|
|
| Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Tue Feb 16, 2010 1:21 pm Post subject: |
|
|
| Make sure that the application.path is correct. I remember using that before and it had some messed up path.
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Wed Feb 17, 2010 6:24 am Post subject: |
|
|
| SwallowIt wrote: | | Save the textbox text as a html file and load it in a web browser control? Common sense. |
That or you can use the webbrowsers proberty, which I dont remeber the name of, to set the html.
| SwallowIt wrote: | | Make sure that the application.path is correct. I remember using that before and it had some messed up path. |
Why not
| Code: | | webBrowser1.Navigate(Application.StartupPath + "\\temp.html"); |
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
|