Home
Username:
Password:
Microsoft Visual Studio .NET Tutorials

System Requirements and Installation / Add Label Controls

Subtitles of the Movie

Let's start constructing our application by first putting a label control underneath our existing label. The purpose of this label control will be to give instructions to the user and also to display the responses of our application. Notice that the text value for this label is set by default to the word label, and the name or ID property of this control is set to label two. Our first is set to label one therefore our second will be set to label two, by default. So let's change the text property to a typical instruction for the user. We will write, 'please enter your name' and a colon, and when we click in some other property on the screen, instructions appear in this label and this is what the user will see, when they first open the application. Now let's put a text box control on the screen. It doesn't have to be very large but it should have enough room so that the user can enter their name and then hit submit. Notice that this text box control is automatically IDed as text box one, you can see that if you scroll to the bottom to the last property, the ID property is text box one. If you wanted to make this text box have a default value, that would appear when the application first opened, you would enter some text in the text property, as it is, we want it to be empty when the user first opens the application. So we're going to leave this property blank. Now let's go over and choose the button control and put a button on the screen, this control also has a name or ID, button one, and the text says button, we will change that to submit, so the user knows what to do.

Tutorial Information

Course: Microsoft Visual Studio .NET
Author: Dave Mercer
SKU: 33420
ISBN: 1932072276
Release Date: 2003-04-01
Duration: 7 hrs / 101 lessons
Work Files: Yes
Captions: For Online University members only
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available