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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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