Design-Time or Run-Time now ?

Event Load of User Control works not only in Run-Time but in Design-Time too.

For example this event works when I try add my User Control on my form.

In Event Load I need to fix Design-Time or Run-Time now

How in VS 2005 can I check it

Help me please.




Answer this question

Design-Time or Run-Time now ?

  • bud1024

    There is a DesignMode property, which you can check in your code to see if your code is running in the designer.



  • Richard B

    Thank you

  • Design-Time or Run-Time now ?