What is the Text property?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the Text property?

Rating:

The Text property of the Control class gets or sets the text associated with a control. Different controls such as TextBox, Button, Form, etc., use this property differently. For example, the string associated with the Text property of a form appears as a heading in its title bar, whereas the string associated with the Text property of a text box is displayed as an input value in the text box itself.

The Text property of a control can also be used to provide an access key for that control. An access key is a keyboard key that activates the associated control. An access key for a control is defined by simply placing an ampersand (&) character before a text character in the Text property of the control. This text character can then be used along with the ALT key to access the control. For example, a Button control with the Text property set to the value E&xit will display the character x in Exit as underlined. This Button control can be accessed using ALT+X.


Rating:



Other articles

Click here to Article home

Microsoft Certification MCSE: MCSA , MCTS, MCDST, MCAD, MCDBA, MCSE Messaging, MCSE Security
JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.