Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / February 2005

Tip: Looking for answers? Try searching our database.

Determine DesignMode in Component or Control Constructor?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Olbert - 14 Feb 2005 02:39 GMT
Is there a way to determine when a Component or a Control is being created in a designer as opposed
to a runtime app from within the constructor?

I think I can probably check DesignMode in the OnLoad() method of a Control... but Components don't
have OnLoad() methods.

- Mark
joeycalisay - 14 Feb 2005 05:27 GMT
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.windowsfor
ms.designtime/browse_thread/thread/28d34ce9451a5661/4d8f12c2016f63f4?q=best+way+
to+determine+designmode&_done=%2Fgroup%2Fmicrosoft.public.dotnet.framework.windo
wsforms.designtime%2Fsearch%3Fgroup%3Dmicrosoft.public.dotnet.framework.windowsf
orms.designtime%26q%3Dbest+way+to+determine+designmode%26qt_g%3D1%26&_doneTitle=
Back+to+Search&&d#4d8f12c2016f63f4


Or do a search on google groups on:
Best way to determine DesignTime

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> Is there a way to determine when a Component or a Control is being created in a designer as opposed
> to a runtime app from within the constructor?
[quoted text clipped - 3 lines]
>
> - Mark
Mark Olbert - 14 Feb 2005 18:37 GMT
Actually, there's an even easier method: LicenseManager.UsageContext.

- Mark
joeycalisay - 15 Feb 2005 00:28 GMT
well thanks...

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> Actually, there's an even easier method: LicenseManager.UsageContext.
>
> - Mark

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.