Am I at DesignTime or at RunTime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm building a custom control and I want to set a property to a specific
value if I'm at DesignTime and to another different value if I'm at RunTime.

Which property of enviroment can give me this information ???

Thanks
Nicola
 
Nicola said:
I'm building a custom control and I want to set a property to a specific
value if I'm at DesignTime and to another different value if I'm at
RunTime.

Inside the usercontrol/form:

\\\
If Me.DesignMode Then
...
Else
...
End If
///
 
Back
Top