// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void InitializeScrollBars()
{
// Create an instance of a GcTextBox control.
GcTextBox gcTextBox1 = new GcTextBox();
// Set the Multiline property to true.
gcTextBox1.Multiline = true;
// Set the ScrollBarMode property to ScrollBarMode.Automatic.
// The scrollbar will shown automaticly if necessary.
gcTextBox1.ScrollBarMode = ScrollBarMode.Automatic;
// Set the ScrollBars property to ScrollBars.Horizontal to allow horizental bar to shown.
gcTextBox1.ScrollBars = ScrollBars.Horizontal;
// Set WrapMode to WrapMode.NoWrap to forbid text to wrap to the next line.
gcTextBox1.WrapMode = WrapMode.NoWrap;
}
' Please use the following namespace
' Imports System.Windows.Forms
' Imports GrapeCity.Win.Editors
Public Sub InitializeScrollBars()
' Create an instance of a GcTextBox control.
Dim gcTextBox1 As New GcTextBox()
' Set the Multiline property to true.
gcTextBox1.Multiline = True
' Set the ScrollBarMode property to ScrollBarMode.Automatic.
' The scrollbar will shown automaticly if necessary.
gcTextBox1.ScrollBarMode = ScrollBarMode.Automatic
' Set the ScrollBars property to ScrollBars.Horizontal to allow horizental bar to shown.
gcTextBox1.ScrollBars = ScrollBars.Horizontal
' Set WrapMode to WrapMode.NoWrap to forbid text to wrap to the next line.
gcTextBox1.WrapMode = WrapMode.NoWrap
End Sub