Changing the Name of Label, Button, Ect.

     It is extremely easy to change the name of a label, button, textbox, ect.

Note:  Changing the name of an object does not change its caption(what it says).  For instance if you change the name of a button it will still say Command1 on it.  To learn how to change the caption of a label, button, textbox, ect.  go to the Captions tutorial.  Continue reading to learn how to change the name of an object.

   Click on the object in which you would like to change the name of.  Go to the properties window on the right of your screen.   Find the name property.

Note:  If your properties window is in alphabetical order, the name property would be first and in parenthesis like this:  (Name).

Click in the box to the right of name and change it to whatever you desire.

Hint:  Naming something after what it does is helpful when programming.   For example, a button that exits the program should be named ExitProg for EXIT PROGram.  You might go even further and put Cmd at the beginning to remind you it is a command.  For a textbox you would put txt at the beginning.

Back

Copyright ©2000 by Kyle Baker.  Please read our disclaimer.