Windows Develop Bookmark and Share   
 index > Windows Forms General > Why won't the name of the method for my click event change?
 

Why won't the name of the method for my click event change?

I am using c# express edition to develop a windows app. I have added some controls to my form. I have changed the text for both the name and the text value forthe controls in the properties window.

I don't understand why the name of the click event doesn't change when I change the values forthe text and the name for these controls. I thought that this was something that would be done automatically.

Is this something that can only be done manually? Is there a setting in VS that will make this happen when I change the values for either the text or the name of the button?

-thanks

new to sql server  Monday, February 18, 2008 8:59 PM

A "good" way around this is to right-click on the name of the method in your code, such as button1_click, and choose Refactor, Rename... from the menu that appears.

BinaryCoder  Monday, February 18, 2008 11:58 PM

A "good" way around this is to right-click on the name of the method in your code, such as button1_click, and choose Refactor, Rename... from the menu that appears.

BinaryCoder  Monday, February 18, 2008 11:58 PM

You can use google to search for other answers

Custom Search

More Threads

• Add Splash Screen to an existing Windows Forms application
• Insert command ADO.net
• Prevent standard text edit context menu display
• DrawString bug
• cursor on textbox
• Treeviews and treenodes
• Check a checkbox in a windows Datagridview with an arraylist
• Edit text in a DataGridViewComboBoxColumn
• disable tab button between grid's cell?
• cannot reload a listview once I have cleared all entries