• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

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

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
natejacobs
Asked:
natejacobs
  • 2
  • 2
1 Solution
 
Razzie_Commented:
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
 
Bob LearnedCommented:
Are you talking about the DesignTimeVisible attribute?

Bob
0
 
natejacobsAuthor Commented:
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
 
Bob LearnedCommented:
Man, I forgot too:

System.ComponentModel.DesignerCategory("Code")

Bob
0
 
natejacobsAuthor Commented:
Thanks, Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now