How to Change Case of a Control Name Within the Code WindowLast reviewed: July 17, 1997Article ID: Q153583 |
4.00 | 4.00WINDOWS | WINDOWS NT kbusage kbenv kbhowto The information in this article applies to:
SUMMARYYou might think that you could change the letter case of a control name by changing the value of the Name property of the control in the Property Browser. However, this does not work. This article shows you how to do it.
MORE INFORMATIONBy design, the letter case of a variable as designated when dimensioning it will be the letter case throughout the project. For example, type the following inside a code window:
Dim MyVariable as string myvariable = "hello" ' will be changed to MyVariable = "hello"To change the letter case of a variable, you must change its letter case within the dimension statement. Therefore, in the previous example, to change MyVariable to Myvariable, type the following:
Dim Myvariable as StringYou can use this fact to change the letter case of a control's name. Just dimension a variable of the desired name and case. After you press ENTER, the case will change throughout the code window. Then simply delete the unnecessary dimension statement. The following shows how to change the case of Command1 to command1 by a step-by-step example:
Step-by-step example
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |