palehorse
Active member
- Joined
- Jan 28, 2005
- Messages
- 34
- Programming Experience
- 1-3
Hello all,
I am new to VB.NET and have a simple question for you. Besides "Don't change then name of your control!" or "Make sure you name it right the first time!" How do I get my code to reflect the changing of the name of one of my controls?
For instance, I have a button named btnHello and double click it, it takes me to the Code Designer and creates the Click Event for btnHello. Now, I notice that it begins with something like btnHello_Click................Handles btnHello.Click
If, in the Form Designer - I change the name to btnWorld and double click it, it takes me to the code designer, but still says btnHello_Click, but goes on saying Handles btnWorld.Click
Is there a setting to change this, if not - why doesn't it change the btnHello_Click to btnWorld_Click?
I am new to VB.NET and have a simple question for you. Besides "Don't change then name of your control!" or "Make sure you name it right the first time!" How do I get my code to reflect the changing of the name of one of my controls?
For instance, I have a button named btnHello and double click it, it takes me to the Code Designer and creates the Click Event for btnHello. Now, I notice that it begins with something like btnHello_Click................Handles btnHello.Click
If, in the Form Designer - I change the name to btnWorld and double click it, it takes me to the code designer, but still says btnHello_Click, but goes on saying Handles btnWorld.Click
Is there a setting to change this, if not - why doesn't it change the btnHello_Click to btnWorld_Click?