.cs expansion in solution explorer for WindowsForms?

N

n3crius

I've noticed that when I'm programming Windows applications in the .net
sutdio I can't see an expansion option in the Solution Explorer to get
the .cs behind the WindowsForm. In contrast, I can get the code behind
an aspx in the Explorer pretty easily. I know I can select 'View Code'
etc but it's like, I don't want to have to do this, I want the .cs for a
form right there, ready to play with, in code view.

Any ideas?

--
One framework to rule them all...

@@@ @@@ @@@@@@ @@@@@@@ @@@@@@@ @@@ @@@ @@@ @@@@@@
@@!@!@@@ @@! !@@ @@! @@@ @@! @@! @@@ !@@
@!@@!!@! @!!!: !@! @!@!!@! !!@ @!@ !@! !@@!!
!!: !!! !!: :!! !!: :!! !!: !!: !!! !:!
:: : ::: :: :: :: : : : : : :.:: : ::.: :

n3crius > .net programmer (c#/asp.net)
 
J

Jim Hughes

In Solutions Explorer, highlight the project then click the Show All Files
toolbar button in the Solutions Explorer title bar.
 
N

n3crius

Jim said:
In Solutions Explorer, highlight the project then click the Show All Files
toolbar button in the Solutions Explorer title bar.

done this already..

--
One framework to rule them all...

@@@ @@@ @@@@@@ @@@@@@@ @@@@@@@ @@@ @@@ @@@ @@@@@@
@@!@!@@@ @@! !@@ @@! @@@ @@! @@! @@@ !@@
@!@@!!@! @!!!: !@! @!@!!@! !!@ @!@ !@! !@@!!
!!: !!! !!: :!! !!: :!! !!: !!: !!! !:!
:: : ::: :: :: :: : : : : : :.:: : ::.: :

n3crius > .net programmer (c#/asp.net)
 
N

n3crius

n3crius said:
done this already..

tried this... thanks m8 but not gud

--
One framework to rule them all...

@@@ @@@ @@@@@@ @@@@@@@ @@@@@@@ @@@ @@@ @@@ @@@@@@
@@!@!@@@ @@! !@@ @@! @@@ @@! @@! @@@ !@@
@!@@!!@! @!!!: !@! @!@!!@! !!@ @!@ !@! !@@!!
!!: !!! !!: :!! !!: :!! !!: !!: !!! !:!
:: : ::: :: :: :: : : : : : :.:: : ::.: :

n3crius > .net programmer (c#/asp.net)
 
C

C# Learner

n3crius said:
I've noticed that when I'm programming Windows applications in the .net
sutdio I can't see an expansion option in the Solution Explorer to get
the .cs behind the WindowsForm. In contrast, I can get the code behind
an aspx in the Explorer pretty easily. I know I can select 'View Code'
etc but it's like, I don't want to have to do this, I want the .cs for a
form right there, ready to play with, in code view.

Any ideas?

I hate this. I often double-click the form icon when I really want the
code to appear, but then the form appears (usually very slowly). If
there's an easier alternative to right-clicking and selecting "View
Code", I'd like to know it too.
 
E

Ed Kaim [MSFT]

Try this:

1. Right click on a form node in the Solution Explorer (such as Form1.cs)
2. Select "Open With..."
3. Select "CSharp Editor" and press "Set as Default"

After this, whenever you double click on a form in the Solution Explorer,
it'll go straight to code view.
 
C

C# Learner

Ed said:
Try this:

1. Right click on a form node in the Solution Explorer (such as Form1.cs)
2. Select "Open With..."
3. Select "CSharp Editor" and press "Set as Default"

After this, whenever you double click on a form in the Solution Explorer,
it'll go straight to code view.

Thanks!
 
N

n3crius

Ed said:
Try this:

1. Right click on a form node in the Solution Explorer (such as Form1.cs)
2. Select "Open With..."
3. Select "CSharp Editor" and press "Set as Default"

After this, whenever you double click on a form in the Solution Explorer,
it'll go straight to code view.

Terrific, thanks for this.

--
One framework to rule them all...

@@@ @@@ @@@@@@ @@@@@@@ @@@@@@@ @@@ @@@ @@@ @@@@@@
@@!@!@@@ @@! !@@ @@! @@@ @@! @@! @@@ !@@
@!@@!!@! @!!!: !@! @!@!!@! !!@ @!@ !@! !@@!!
!!: !!! !!: :!! !!: :!! !!: !!: !!! !:!
:: : ::: :: :: :: : : : : : :.:: : ::.: :

n3crius > .net programmer (c#/asp.net)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top