Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's my Mode?
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00850556
Message ID:
00852851
Views:
9
Hi Pertti,

There is a property called DesignMode that you can check.

>What would be the easiest way to detect in form code whether I am in design or "run" mode. In other words, when I am designing a form, one thing happens in, say, textbox constructor, but I don't want it to happen when the form actually runs.
>
>I know there is an ISite.DesignMode property, but I would like to avoid going through that if possible.
>
>Thanks!
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform