Click to See Complete Forum and Search --> : curiosity about button name change


Cougargirl
March 9th, 2003, 02:03 PM
Hi,

I am very new to vb.NEt, but so far it is very interesting and powerful. So I would expect this question not to happen. I find when I add a button, after I add whatever code to it, if I decide to then change the name in properties, why doesn't the code automatically reflect this change? I thot it would be smart enuf for this, if you are not careful and have many buttons then this could cause a problem. Am I just expecting too much, or is this a silly question? if so, sorry to bother.
D

gknierim
March 10th, 2003, 10:36 AM
The only silly questions here are ones that don't get asked!

Well, this is one thing that vb doesn't do CougarGirl. It does change the handle for the control but not the actual code that you write.
It would be nice if it would do this. However, I would recommend that you have a good naming convention for all your controls (as well as variables) and you shouldn't have a problem. i.e. For all your command buttons, use the prefix cmd or btn...the choice is up to you as long as you are consistent. After all, us programmers have to do a little bit of work!

Welcome and I hope this helps!
Greg