c# - How to make a UserControl inert at design time? -


i have usercontrol cool video capture stuff. slapped control on form - , starts working right away, in design time! that's gratifying , see working, it's kind of annoying @ design time, , slows me down. know usercontrol in run-time when it's being used on form/control @ design time, i'd able shut off when it's not in actual running app.

what's best way this?

put code in control:

if(designmode)    return; 

designmode property tells you're running in designer.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -