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 / Design Time / April 2005

Tip: Looking for answers? Try searching our database.

Turn Designer Off

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick Mogstad - 19 Apr 2005 21:10 GMT
Is there a way to have a Class that inherits from a control not show the
designer when double-clicked, but just show the code window?  The class
cannot be designed, so it doesnt do any good to show the designer.  I am
thinking there is probably an attribute for that, but I can't seem to find
it anywhere.

Rick
Henrik E. Rasmussen \(no-spam\) - 19 Apr 2005 23:24 GMT
Rick,

you can apply the System.ComponentModel.DesignerCategoryAttribute to the
class with a value of "code" like this (C# syntax):
[System.ComponentModel.DesignerCategory("code")]

Regards
Henrik

> Is there a way to have a Class that inherits from a control not show the
> designer when double-clicked, but just show the code window?  The class
[quoted text clipped - 3 lines]
>
> Rick
Rick Mogstad - 21 Apr 2005 14:45 GMT
Thanks.  This does seem to work well, but in VB it seems that you have to
delete the .resx file, or it still goes into design mode sometimes.  Its
kind of sporadic when it does it, but without the .resx, it seems to be
working well.

Thanks again.

Rick

> Rick,
>
[quoted text clipped - 12 lines]
>>
>> Rick
joeycalisay - 22 Apr 2005 04:04 GMT
I couldn't see any Code Category for DesignerCategory in the
documentation....

Signature

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

> Rick,
>
[quoted text clipped - 12 lines]
> >
> > Rick
Rick Mogstad - 29 Apr 2005 16:07 GMT
Thats because it isnt in there.

>I couldn't see any Code Category for DesignerCategory in the
> documentation....
[quoted text clipped - 18 lines]
>> >
>> > Rick

Rate this thread:







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.