ADBRITE ads links
You are here: CodeIdol.com > C# > Microsoft Visual C# 2005:Complete Starter Kit > Working With Traditional Controls
Microsoft Visual C# 2005:Complete Starter Kit
| Hour 7. Working with Traditional Controls
What You'll Learn in This Hour:
Displaying static text with the Label controlAllowing users to enter text using a text boxCreating password fieldsWorking with buttonsUsing panels, group boxes, che...
|
|
| Displaying Static Text with the Label Control
Label controls are used to display static text to the user. By static, I mean that the user can't change the text directly (but you can change the text with code). Label controls are one of the most co...
|
|
| Allowing Users to Enter Text Using a Text Box
A Label control is usually the best control for displaying text that a user can't change. However, when you need to enable users to enter or edit text, the text box is the tool for the job. If you've...
|
|
| Creating Buttons
Every dialog box that Windows displays has at least one button on it. Buttons enable a user to invoke a function with a click of the mouse.
You already have an OK button on the form. Typically, an OK button accepts the user's v...
|
|
| Presenting Yes/No Options Using Check Boxes
A check box is used to display True/False and Yes/No values on a form, and you've probably run into many of them as you've worked with different Windows applications. Clicking the check box control toggl...
|
|
| Creating Containers and Groups of Option Buttons
In this section, you'll learn how to create containers for groups of controls using panels and group boxes. You'll also learn how to use the Option Button control in conjunction with these container...
|
|
| Displaying a List with the List Box
A list box is used to present a list of items to a user. You can add items to, and remove items from, the list at any time with very little Visual C# code. In addition, you can set up a list box so that a user c...
|
|
| Creating Drop-Down Lists Using the Combo Box
List boxes are great, but they have two shortcomings. First, they take up quite a bit of space. Second, users can't enter their own values; they have to select from the items in the list. If you need to...
|
|
| Summary
In this hour, you learned how to present text to a user. You learned that the Label control is perfect for displaying static text (text the user can't change) and that the text box is the control to use for displaying editable text. You ca...
|
|
| Q&A
Q.Can I place radio buttons directly on a form?A.Yes. The form is a container, so all radio buttons placed on a form are mutually exclusive to one another. If you wanted to add a second set of mutually exclusive buttons, they'd have to be ...
|
|
| Workshop
Quiz
1.Which control would you use to display text that the user can't edit?2.What common property is shared by the Label control and text box and whose value determines what the user sees in the control?3.What property must be set t...
|
|
You are here: CodeIdol.com > C# > Microsoft Visual C# 2005:Complete Starter Kit > Working With Traditional Controls
|
|
Related tags
Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......
|
|