I have a .NET UserControl created with the Interop forms toolkit and used on a VB6 form. In my UserControl derived class, I do the following
When the control is used i Visual Studio 2005, this code works fine and DoSomething() is not executed. However, when used in VB6, the DoSomething function is called even at design time
Can someone give me some pointers on how to properly detect design time/runtime mode when the user control is used in VB6 ?
There are several methods you can use to detect whether the code is running in the IDE from the VB 6.0 side:
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?