TextBox & RichTextBox
Topic
Presented by
Name : Saniya Saher
Class : B.Sc. III (Semester VI)
Batch : CMP
ControlControl
Syntax&Example
Methods
PropertiesorAttributes
TEXTBOXCONTROL
 It is a standard control for accepting i/p as well
as to display the o/p
 It can handle string (text) and numeric data but
not images
 By default , 2048 characters can be entered
Syntax&Example
Methods
TEXTBOXCONTROL
PropertiesorAttributes
TextAlign alignment of text : Right, left, centre
Locked
Whether a user can enter a value or change
the default value
Maxlength
Maximum no. of characters that textbox will
accept
Multiline More than single line
PasswordChar Any character appear in place of text
ScrollBars None, Horizontal, Vertical, Both
Text Initial text (default value)
WordWrap Multiline text box wraps the text
Syntax&Example
PropertiesorAttributes
TEXTBOXCONTROL
 It is a standard control for accepting i/p as well
as to display the o/p
 It can handle string (text) and numeric data but
not images
 By default , 2048 characters can be entered
Methods
Methods
PropertiesorAttributes
TEXTBOXCONTROL
 It is a standard control for accepting i/p as well
as to display the o/p
 It can handle string (text) and numeric data but
not images
 By default , 2048 characters can be entered
Syntax&Example
Syntax&Example
Methods
PropertiesorAttributes
RICHTEXTBOXCONTROL
 It is a standard control for accepting i/p as well
as to display the o/p
 It can handle string (text) and numeric data but
not images
 By default , 2048 characters can be entered
Syntax&Example
Methods
TEXTBOXCONTROL
PropertiesorAttributes
TextAlign alignment of text : Right, left, centre
Locked
Whether a user can enter a value or change
the default value
Maxlength
Maximum no. of characters that textbox will
accept
Multiline More than single line
PasswordChar Any character appear in place of text
ScrollBars None, Horizontal, Vertical, Both
Text Initial text (default value)
WordWrap Multiline text box wraps the text
Syntax&Example
PropertiesorAttributes
TEXTBOXCONTROL
 It is a standard control for accepting i/p as well
as to display the o/p
 It can handle string (text) and numeric data but
not images
 By default , 2048 characters can be entered
Methods
Methods
PropertiesorAttributes
TEXTBOXCONTROL
 It is a standard control for accepting i/p as well
as to display the o/p
 It can handle string (text) and numeric data but
not images
 By default , 2048 characters can be entered
Syntax&Example

TextBox and RichTextBox in VB.Net