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
Post a Comment