Hello:
I named a button with the default of button3. I clicked the button and added some code. I then renamed the button to 'buttonExcel' in the Property window. It left the 'button3' code without renameing it.
How can I rename a button and have it be changed everywhere in the application/project? Without cut/past the code.
Also I have some code that does not do anything. How can I remove all that are empty? (Like code below)
private void buttonVBasic_Click(object sender, EventArgs e)
{
}
If I just delete the code, it gives me errors.
Rename a button in VS 2008 C#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Aleksandar IlioskiRank #9,295 · 208 reputationPosted Feb 25, 2010, 6:29 PM EST
this is for c#.. i don't know if it work in VisualBasic..
GustavoRank #1,990 · 732 reputationPosted Feb 26, 2010, 4:21 AM EST
Thanks, seems to work. BTW: I am using C#, the sample I had said "buttonVBasic_Click" was just a name.
Thanks you so much.
Aleksandar IlioskiRank #9,295 · 208 reputationPosted Feb 27, 2010, 4:25 AM EST