Page #121 (Chapter 29: Lost ControlsGraphics)

 

Case 1: Small Errors

The label at the top of the Lost Controls screen template is label1. Highlight this label, and when its properties appear in the Properties window, move to the bottom of the properties list and change its location from (190, 20) to (190, 70). What happens to the label? It moves under the panel.

Now what are you going to do? This is easy to fix. You know that the label exists and that every control is listed in the Properties window. When you click on the window template, the Form1 properties are displayed in the Properties window, as shown in Figure 29-2.

image from book
Figure 29-2: Properties window

The line of text at the top that reads Form1 System.Windows.Forms.Form is a list box, and all controls in that list box may be listed by clicking on the down arrow to the right of the text. When you click on the down arrow, a list of controls is displayed: Form1, panel1, button1, label1, and label2. The missing label must be one of the labels in this list.

Click on label1, and immediately the position of label1 will be shown on the window template. Now you can move the label to its proper location by either dragging the rectangle with the mouse or by typing new X and Y coordinates in the label s properties window.

Move label1 from location (190, 70) back to (190, 20).

 


Unlocking Microsoft C# V 2.0 Programming Secrets
Unlocking Microsoft C# V 2.0 Programming Secrets (Wordware Applications Library)
ISBN: 1556220979
EAN: 2147483647
Year: 2005
Pages: 129

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net