Gets a value indicating whether a control is being used on a design surface.
Protected Friend ReadOnly Property DesignMode As Boolean
Dim value As Boolean value = Me.DesignMode
protected internal bool DesignMode { get; }
protected public: property bool DesignMode { bool get (); }
protected internal function get DesignMode () : boolean
The DesignMode property returns true to indicate that the control is being used in the context of a designer. Your custom controls can use this property when design-time behavior is different than run-time behavior.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98