Search code examples
visual-studio-2010eventsvisual-studio-designer

adding a right click to a text box user control in Visual Studio designer?


I have a textbox user control and when I double click, it adds the Text_Changed listening method to the code that I can fill in.

How do I get it to add my Right_Click listening method or Left_Click listening method or Double_Click listening method?


Solution

  • In Visual Studio, all your events are accessible by clicking the lightning icon (Events) at the top of the Properties window.

    You can double-click the name of an event to create a new handler, or choose an existing handler from the dropdown.