.NET Control in VB6 disappears
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I have created a custom control in .NET and registered it with COM interprop so as I could use it in a VB6 application. The control contains a text box within it and when the control looses focus the text box disappears. When I then double click on the control then the text box reappears. I can get the control to work by using the following code in VB6 Private ctrlExtra As VBControlExtender Set ctrlExtra = Me.Controls.Add("TestControl.TestControl", "myCtrl") ctrlExtra.Visible = True If anyone can help with this then I will be truly greatful. Martin Stevenson