CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Posts
    1

    Wink curiosity about button name change

    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

  2. #2
    Join Date
    Jan 2000
    Posts
    264
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured