Hi All,
I am having a .Net ActiveX control which can be used in vb 6.0.
I opened a new VB 6.0 StandardEXE project, i have given the Reference to that
Control.tlb file, and components i have selected that control . The control is added to tool box. Then Select the control, drag and drop on the VB 6.0 Form. Run the application.. the .Net control is working fine.
When the VB 6.0 application starts running, it is calling the .Net Constructor. In the .NET constructor, i am displaying a message like "Loading the Control..Please wait...". It is displaying.
The problem is when i close the VB 6. 0 Form, again the message is getting displayed as the .Net Constructor is calling again, This should not happen.
Here again why the .Net Constuctor is getting called ??
If i load the .NET control at runtime , in VB 6.0 Form load event, it is workin g fine, it is not displaying the message at the time of closing the form.
Why only at Design Time??? any suggessions please...
I am having a .Net ActiveX control which can be used in vb 6.0.
I opened a new VB 6.0 StandardEXE project, i have given the Reference to that
Control.tlb file, and components i have selected that control . The control is added to tool box. Then Select the control, drag and drop on the VB 6.0 Form. Run the application.. the .Net control is working fine.
When the VB 6.0 application starts running, it is calling the .Net Constructor. In the .NET constructor, i am displaying a message like "Loading the Control..Please wait...". It is displaying.
The problem is when i close the VB 6. 0 Form, again the message is getting displayed as the .Net Constructor is calling again, This should not happen.
Here again why the .Net Constuctor is getting called ??
If i load the .NET control at runtime , in VB 6.0 Form load event, it is workin g fine, it is not displaying the message at the time of closing the form.
Why only at Design Time??? any suggessions please...
Comment