Search This Blog

Friday, August 29, 2014

How to get if is Runtime or Design Mode VB.net

VB.NET > Control > DesignMode

DesignMode returns true is a control is being used in the context of a designer. 

Example:

If Me.DesignMode Then
      Return
End If





Tuesday, August 12, 2014

Typeof C# example

C# > Keywords > typeof

Obtains the System.Type object for a type.


Example:



Type type = typeof(T);