Computer Science, asked by shhshshvfgsvsg, 1 year ago

To attach a scroll bar to textbox,the property of textbox should be set to

1. multiline = true

2. scroll bar = true

3. single line = false

4. none of these

Answers

Answered by pritammondal64
9
scroll bar =true
HOPE IT IS HELPFUL TO YOU

shhshshvfgsvsg: R U sure??
pritammondal64: yes i am sure
shhshshvfgsvsg: okay thank u
pritammondal64: your welcome
pritammondal64: my friend
Answered by techtro
0

The scroll bars enumeration value will indicates a Multiple text boxes. So to control it will appears a horizontal scroll bars, vertical scroll bar, or both and with  no scroll bars.  

Hence it is default ScrollBars.None.

Example

public void CreateMyMultilineTextBox()

{

   TextBox textBox1 = new TextBox();    

   textBox1.Multiline = true;

   textBox1.ScrollBars = ScrollBars.Vertical;

   textBox1.AcceptsReturn = true;

   textBox1.AcceptsTab = true;

   textBox1.WordWrap = true;

   textBox1.Text = "Welcome!";

}

scroll bar = true

Similar questions