How can my custom control know if it is in design mode?

by Andrew Jackson 11. September 2008 12:25
Easy - check me.DesignMode e.g.


Put this code into the load event of your control and the control will turn red when in design mode

If Me.DesignMode Then
Me.BackColor = Color.FromKnownColor(KnownColor.Red)
End If

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Development | VB.net

Comments

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen