Hello,
hopefully somebody can help me with this:
I'm creating a form on wich I dynamically create controls.
Background:
With my app a user can execute an sql-statement on several sql-servers at once.
After the processing he will get a form with the results.
On the form is Tab-Control (TabOne from ComponentOne). I can dynamically create tabs with this control and attach other controls to this tabs.
I want to create a text-box showing the results. But my problem is: I don't know the class-iD of a textbox. Right now I'm using:
This works fine for me. But the created control is not the same as a textbox I create during design-time in VB. I think the Forms.TextBox.1 comes with office and I can't make sure that my customers have office installed (and if yes in which version).Code:Dim rt As Object Set rt = Controls.Add("Forms.TextBox.1", "rt" & x)
I tried to use Spy++ to find out the class-ID, but it says "ThunderTextBox" which is not a valid Class-ID.
I searched the registry without luck. I tried to use the OLE/COM Object view from VS6, but I can't find the right classID!
Any Ideas




Reply With Quote