Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2005

Tip: Looking for answers? Try searching our database.

WebBrowser.DocumentText problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Teeravee Sirinapasawasdee - 09 Dec 2005 05:26 GMT
Dear all,

I have added WebBrowser control in my program to display some message. I
assign text that I want to display to WebBrowser control by using
DocumentText property. Everything fine when I first assign the value but
there is nothing change when I try to assign another value to display again.
I've called Refresh() method but nothing display after the method is involve.
What should I do if I want the WebBrowser to display dynamic html text that
is generated from my program to display in WebBrowser control not only in
first assign value?

Thanks,
Teeravee Sirinapasawasdee
Charles Law - 09 Dec 2005 10:20 GMT
Hi Teeravee

Try the following:

   WebBrowser1.Document.OpenNew(True)
   WebBrowser1.DocumentText = "Your text"

However, I should add that if I only execute the second line, on subsequent
attempts to change the document text I get a dialog window appear asking me
if I want to save the changes to the document. I would have expected you to
see the same thing.

HTH

Charles

> Dear all,
>
[quoted text clipped - 12 lines]
> Thanks,
> Teeravee Sirinapasawasdee

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.