Manish Pansiniya's Blog

.NET, C#, Javascript, ASP.NET and lots more…:)

IsDesignMode Issue in Visual 2005, Checking Design Mode

leave a comment »

I used Control.IsDesignMode property but it’s behavior is strange so i am using following comparison to check for whether control is in design mode or run mode.

bool IsDesignMode = System.ComponentModel.LicenseManager.UsageMode == System.ComponentModel.LicenseUsageMode.Designtime ;

Advertisements

Written by Manish

January 28, 2009 at 1:00 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: