Lec9 - Lecture 9: Controls & Validation PIC 10C Todd...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Lecture 9: Lecture 9: PIC 10C PIC 10C Todd Todd Wittman Wittman The Form Control The Form Control • The form is the window on which you lay your controls. • Setting the Text property changes what appears at the top of the window. • The user can change the size of the window, so you may want to set the Anchor property for the controls you place on the form. • You can set the Locked property if you don't want the user to be able to move or resize the form. • The most important event for the form is Load , which determines what the user sees first. The Load event is usually defined by the Designer file.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Submitting HW Submitting HW • When submitting HW for this class, turn in 3 things: – The event handler: hw1.cs – The designer file: hw1.Designer.cs – The executable file (in bin->debug): hw1.exe Set the Text on your form so that it says the HW# and your name at the top. Right-click and rename the form Form1.cs to hw2.cs or whatever the directions call for. Text Box Properties Text Box Properties • Interesting Properties of Text Boxes (p. 180) Text -- the text inside the box, as a string. Setting this value in Properties controls what appears initially in the box. SelectedText -- the substring that the user highlighted in the box. Multiline -- boolean value that indicates if the text box can store multiple lines. WordWrap -- boolean that indicates whether you want words to wrap around to next line. PasswordChar -- entering a char like '*' here lets you hide the input: ********** CausesValidation -- boolean value that indicates whether the contents of the text box will be validated (more on this later)
Background image of page 2
3 Text Box Events
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/18/2010 for the course PIC 10C taught by Professor Wittman during the Spring '10 term at UCLA.

Page1 / 8

Lec9 - Lecture 9: Controls & Validation PIC 10C Todd...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online