G
Google Jenny
Hi, folks.
When I make a textbox multiline (by setting its TextMode property to
MultiLine) I automatically get scrollbars.
There is no scrollbar property on the TextBox control. It's simply not
one of the choices.
Yet, poking around on the net, I find that some people (or versions of
.NET?) do allow this, as in this code snippet I found:
[C#]
public void CreateMyMultilineTextBox()
{
// Set the Multiline property to true.
TextBox1.Multiline = true;
// Add vertical scroll bars to the TextBox control.
TextBox1.ScrollBars = ScrollBars.Vertical;
}
I would like to be able to code: TextBox1.Scrollbars = ScrollBars.None;
But Scrollbars is not on the property menu for my text box.
Any help greatly appreciated!
Thanks,
Google Jenny
When I make a textbox multiline (by setting its TextMode property to
MultiLine) I automatically get scrollbars.
There is no scrollbar property on the TextBox control. It's simply not
one of the choices.
Yet, poking around on the net, I find that some people (or versions of
.NET?) do allow this, as in this code snippet I found:
[C#]
public void CreateMyMultilineTextBox()
{
// Set the Multiline property to true.
TextBox1.Multiline = true;
// Add vertical scroll bars to the TextBox control.
TextBox1.ScrollBars = ScrollBars.Vertical;
}
I would like to be able to code: TextBox1.Scrollbars = ScrollBars.None;
But Scrollbars is not on the property menu for my text box.
Any help greatly appreciated!
Thanks,
Google Jenny