Question

I can't for the life of me figure out how to do something that I did forever in VS2008 and earlier with VS 2012.

When creating a web application, throw some server side controls on the page, then goto the codebehind and at the top of the code editor were 2 dropdowns. The one on the left displayed the page and controls on the page, selecting one of them say a GridView, would then display the Events for that control in the right side dropdown. So I could double click on it and create one of the events without remembering and typing the event in code.

In my VS 2012, the left only displays the Page (big help) and no controls. With that selected, the right dropdown displays controls, but selecting it only loads up the designer for that page and the entry for that control.

Is it a setting I don't have set, or how and why is this changed, how can do this again in VS2012?

Was it helpful?

Solution

It is in the properties window, but you have to click on the lightning bolt icon.

OTHER TIPS

You can re-enable the events navigation bar at the top of code behind files like this:

1) From the Tools menu select Options

2) From the options on the left select All Languages

3) From the options on the right, click the checkbox next to Navigation Bar then check it again.

It is important to switch it off then back on again.

This will override your development environment settings and will force the Event Navigation Bar to appear at the top of all text editors.

Double-click on control (button) in Design vew to create a handler for its Click event.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top