Professional Documents
Culture Documents
(c) The Locked property allows the Textbox to reject user changes but
still allows the user to set focus to the Textbox. Therefore, the user
can scroll through the contents of a Textbox without accidentally
changing anything. Contrast this to the Enabled property which
doesn't allow the user to set focus to the Textbox.
(d) The Multiline property is only writable at design time, although you
can find out its value at runtime. Multiline is False by default,
meaning that everything in the Textbox control will appear on a
single line. If Multiline is set to True, the Textbox will perform word-
wrapping and also break a typed line after a hard return.
(e) The Password Char property defines a character that will appear on
the screen in place of the actual characters in the Text property. The
underlying value of the Text property still contains the actual
characters typed by the user, but for each character typed, only the
password character will appear. Typically programmers set this
property to an asterisk (*) for Textbox controls that represent the
password on login screens. If you want to eliminate the Password
Char property for a Textbox, be careful to erase its old value with
your keyboard's Delete key instead of simply overwriting it with the
spacebar.
(f) The Scrollbars property is only writable at design time, although you
can check its value at runtime. The default value is none, but you
can also choose Horizontal, Vertical, or both. Scrollbars enable the
user to scroll vertically through the contents of a multiple line
Textbox or horizontally through wide contents of Textboxes.
(g) The SelText property assigns or returns the contents of the currently
selected text in a Textbox. If you assign a string to SelText property
in your code, you'll replace the currently highlighted text with the
contents of the new string and deselect whatever had been selected
before.
(h) The SelStart property is an integer value that gives you the position
of the first highlighted character in the Textbox. It's zero-based. If
there's no text currently selected, SelStart will represent the current
position of the text cursor within the Textbox control. If you change
the SelStart property in your code, you'll deselect whatever text was
highlighted and move the text cursor to the position given by
SelStart.
(j) The Text property is the Textbox control's default property. You can
set it at design time or runtime, and you can also read it at runtime.
The Text property represents the current visible, editable (not
necessarily visible or editable, depending on the value of the Visible
property, Enabled and/or Locked) contents of the Textbox.
4. Show the working of message box.
5. Show the working of check box.
6. Show the working of option button.
7.Show the working of list box.
8. Show the working of combo box.
9.Show working of picture and image box.