Solved

Attribute defaults class to code view - which one is it?

Posted on 2004-10-06
5
258 Views
Last Modified: 2010-04-15
There's an attribute out there that causes a class to be opened in code view when it's double-clicked in VS.  I can't remember what it is.  Does anyone know it?
0
Comment
Question by:natejacobs
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Razzie_
ID: 12241512
Only thing I know that in options --> HTML Designer and Xml Designer you can select the default view for asp pages, html pages, etc. Looked in the VS.NET Help file to find the same for Windows Forms and such, but can't find it.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12242131
Are you talking about the DesignTimeVisible attribute?

Bob
0
 
LVL 3

Author Comment

by:natejacobs
ID: 12242463
I don't believe so.  I just looked it up and DesignTimeVisible  seems to control wether a component is visible in the component tray in VS.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 12242512
Man, I forgot too:

System.ComponentModel.DesignerCategory("Code")

Bob
0
 
LVL 3

Author Comment

by:natejacobs
ID: 12242518
Thanks, Bob
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now