Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Studio C# Question

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
We haven't installed VS 2008 yet, and we're using VS 2005.
I just started using C# and I'm loving it! I have been a VB developer for a long time, and this is a nice change.

My question is, I'm in the Web development section of Visual studio 2005. We do mostly all web applications.

When I used VB, and I added a control to my page, I used to be able to double click on the control and it would take me to the code behind file, and add the default event/function, i.e. for a button it was Button1.Click.
(This is still possible).


If I was already in the code behind file (I use all separate code files), I could choose the control from the top left dropdown, then choose one of the events from the top right dropdown.
This would give me the descriptor code to work with.

Since going to C#, I only see the main class name in the upper left dropdown. No controls.
I want to see all of the controls on my page as I used to.

Is this possible?
Can someone point me please? It's a bummer typing the events out by hand.


Thanks ahead of time.
 
In the properties for the control, click on the little lightning symbol at the top. That will give you access to all the controls events.

Hope this helps

Andy
---------------------------------
[green]' Signature removed for testing purposes.[/green]

 
Thanks, Andy.

I found something too:

--------------------------------------------------------
Note:
In code-behind pages that use C#, this technique will not work because the control name will not appear in the drop-down list in the last step. Use one of the other procedures instead.
--------------------------------------------------------

Stinking Microsoft. :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top