Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In the winforms designer, can I turn off the annoying double click -> code behind event handler creation?

Most of the time this is handy, but sometimes I want this turned off. Does anyone know how?

like image 321
Isaac Bolinger Avatar asked Dec 08 '11 23:12

Isaac Bolinger


People also ask

How do you delete an unwanted event handling method in C#?

Clear the handler To remove an event handler, you can't just delete handler code that is in the form's code-behind file, it's still referenced by the event. Use the Properties pane to remove the handler of an event: Open the Visual Designer of the form containing the control to change.

Which event of a form will be generated when user double click on the form?

The Click event is raised every time a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of a Form, the Click and DoubleClick events are raised when the form is double-clicked and both methods are called.

What is used to perform a click event in Windows Forms?

Button control is used to perform a click event in Windows Forms, and it can be clicked by a mouse or by pressing Enter keys. It is used to submit all queries of the form by clicking the submit button or transfer control to the next form. However, we can set the buttons on the form by using drag and drop operation.


1 Answers

There is no option for this. The workaround is simple, just type Ctrl+Z and click Yes.

like image 54
Hans Passant Avatar answered Oct 25 '22 09:10

Hans Passant