Hi...

OK, I want to know how can I find out in my ActiveX Control, if the control is used at design time, or run time. I have code in my ActiveX Control that runs in design time, and I DON'T want it to run.
For example if I put a message in the UserControl_Initialize() saying "Hello...", I get the message when I put the control on the form at design time, and I don't want that, but I want it to show the message when I run the program with the control on it...

So, the general idea is: How do I prevent code to run at design time?

Thank you in advance...