Solved

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

Posted on 2004-10-06
5
257 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_
Comment Utility
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
Comment Utility
Are you talking about the DesignTimeVisible attribute?

Bob
0
 
LVL 3

Author Comment

by:natejacobs
Comment Utility
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
Comment Utility
Man, I forgot too:

System.ComponentModel.DesignerCategory("Code")

Bob
0
 
LVL 3

Author Comment

by:natejacobs
Comment Utility
Thanks, Bob
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

13 Experts available now in Live!

Get 1:1 Help Now