Hi, I'm trying to display data from a database in a browser instance hosted in a tab on the CompanyView screen in Act! I set the value of the DocumentText property from a method called from the CompanyChanged Event. The first time I set the browser text I get a blank page. Debugging in VS or doing a view source shows me "<html></html>". Subsequent changes show up and work fine, even if I return to the first company that failed the first time round.
Is there an issue with populating a browser object when it is not currently displayed?
I've tried setting the DocumentStream property and writing to file and using navigate but I seem to get the same behaviour no matter what. Does anyone have any ideas?
Otherwise, a long time ago, I remember having to access the browser property InnerHTML of the document object in the browser control and set that to the HTML you want...but I cannot locate that piece of code anymore...
Hope one of the above works out :-) let us know...
I've tried the code in your example and I'm still having issues. I've even added code to the Enter event on the tabpage the control is sitting on and i still get the same behaviour.
I'm starting to get the feeling that it's one of those crazy 1 line errors that will be so obvious if I take my head out of the code for a while so I'm going to take some time to work through a couple of other issues and come back to it later.