locked
How to add a control event using Visual Studio 2019 RRS feed

  • Question

  • User626947523 posted

    In the old visual studio (probably before 2010). I was able to add a control event in the code-behind page using the dropdown list at the top of the page. The dropdown list gives me all events of a control and I just selected the one and the empty event handler appeared in the ocde page. Now in the Visual Studio 2019, in the code behind page (c#), I see three dropdown lists, the first one just has the namespace (my solution), the second one just show the current page partial class name, and the third one contains the objects in the page, as well as event procedures I have created. What did I miss? How do I add an event procedure without having to type the empty procedure myself?

    Wednesday, September 9, 2020 2:50 AM

All replies

  • User626947523 posted

    OK. I figured it out. I have to look into the Design tab of the page (not the Source tab), then the Lightning button appears in the Properties page of the control I selected in the Design tab. Clicking the lightning button gives me all events.

    Wednesday, September 9, 2020 3:28 AM