Navigationbar Visualstudio 2013

Asked

Viewed 31 times

3

Today I started a project in C# and realized that in the navigation bar, when I click on a control I am directed to the designer of . aspx, and is not displayed the events that the control has as in VB.Net language.

NavigationBar

I can only go to the event if I open the properties of the control, then I click on the icon Events, and then on the respective event.

inserir a descrição da imagem aqui

Does anyone know if it is possible to solve this?

1 answer

3


This is the Navigation Bar, and really it is different between VB.Net and C#

In VB.Net it can be used to choose the available events in a control, whereas in C# it can only be used to navigate between the methods existing in your code, so the way to navigate the events is even through the properties window.

I don’t know exactly why they are different, but I would say that this was intentional due to differences in the way the code that treats events is generated by VB.Net and C#, in VB.Net the keyword Handles instructs the compiler to generate the event handling code, while in C# it is usually included by the IDE in the method InitializeComponent() or directly in Tags in the case of Webforms.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.