HaimK
January 27, 2003, 14:35:24
I have a form which contains a tab control. Each tab has a differant text control which loads xhtml data from a database. When the form is initially loaded one textcontrol is visible, and the others are hidden in the other tab pages. Trying to load the text into one of the hidden textcontrols (with the following code:
Textctl1.Load("<HTML><BODY>" & Dataset1.Tables(0).Rows(0)("myText") & "</BODY></HTML>", TXTextControl.StringStreamType.HTMLFormat) generates this exception:
The TXTextControl object must have been completely loaded to use this method.
If I click on each tab page prior to loading the data, then the control loads properly. Any suggestions how to work around this?
Haim
Textctl1.Load("<HTML><BODY>" & Dataset1.Tables(0).Rows(0)("myText") & "</BODY></HTML>", TXTextControl.StringStreamType.HTMLFormat) generates this exception:
The TXTextControl object must have been completely loaded to use this method.
If I click on each tab page prior to loading the data, then the control loads properly. Any suggestions how to work around this?
Haim