473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Default view for .cs files; code completion for try...catch

DC
Hi,

this is somehow related to the fact that the main class in my .cs file
inherits from another file: the VS .Net 2003 thinks it is best to open
this file in designer mode then and also adds a .resx file to the .cs
file. But I want this file to always open in code view. Any clue?

I heared it is possible to automatically add catch handlers once
you type "try {"... but I did not see something like that - does this
feature exist at all?

TIA, regards

DC
Nov 15 '05 #1
2 1377
Hi DC,

Right click on file in solution explorer, select Open With... and select
Visual Basic or CSharp editor option.
Note that this will affect all files - they will all open in code instead of
designer.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"DC" <dc@upsize.de> wrote in message
news:5b**************************@posting.google.c om...
Hi,

this is somehow related to the fact that the main class in my .cs file
inherits from another file: the VS .Net 2003 thinks it is best to open
this file in designer mode then and also adds a .resx file to the .cs
file. But I want this file to always open in code view. Any clue?

I heared it is possible to automatically add catch handlers once
you type "try {"... but I did not see something like that - does this
feature exist at all?

TIA, regards

DC

Nov 15 '05 #2
DC
Thank you, Miha!

DC

"Miha Markic [MVP C#]" <miha at rthand com> wrote in message news:<uO**************@TK2MSFTNGP09.phx.gbl>...
Hi DC,

Right click on file in solution explorer, select Open With... and select
Visual Basic or CSharp editor option.
Note that this will affect all files - they will all open in code instead of
designer.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"DC" <dc@upsize.de> wrote in message
news:5b**************************@posting.google.c om...
Hi,

this is somehow related to the fact that the main class in my .cs file
inherits from another file: the VS .Net 2003 thinks it is best to open
this file in designer mode then and also adds a .resx file to the .cs
file. But I want this file to always open in code view. Any clue?

I heared it is possible to automatically add catch handlers once
you type "try {"... but I did not see something like that - does this
feature exist at all?

TIA, regards

DC

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John | last post by:
Hi, Could you give your opinions on the best code completion in Python IDEs. My only complaint with PythonWin has been that the code completion support is incomplete. The interactive mode has...
1
by: Wayne | last post by:
I'm using the following code from the Access Web to open a folder. The folder opens in "List" View. Is there an addition that I can make to the code to force the folder to open in "Details" view?...
3
by: Randy | last post by:
I've used the Save as-dialog, but I don't know how to set it on the right disk or file type. Now the path is c:\Documents and settings\mydocuments but I want c:\Project and only the .mdb files...
2
by: Sanjay Pais | last post by:
We are using ASP.2.0 and I was wondering if any one knew how I could modify the default.aspx. What I want to do is add some new HTML to the aspx page as well as either change the code behind or...
19
by: Andrew J. Marshall | last post by:
I want to create a class that must receive a parameter when instantiated. In other words, I do not want it to have a "Public Sub New()". 1) Does VB.NET create a default public constructor if I do...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
1
by: mark2802 | last post by:
Im using the CommonDialog activeX control to select multiple file names. However I would like to be able to control using code the resulting view of the files as you can do in realtime using the view...
2
by: Jeff | last post by:
Hi I'm trying to achieve a scenario where I have c# files that are compiled dynamically, the assemblies are then loaded in a different AppDomain, I call a simple method from the object, and then...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.