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

by Andrew Jackson 11. September 2008 05: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

About Me

Andrew Jackson

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008,2009 Andrew K. Jackson

RecentComments

Comment RSS