TextBox.ScrollBars : TextBox « System.Windows.Forms « C# / C Sharp by API






TextBox.ScrollBars

   

using System;
using System.Drawing;
using System.Windows.Forms;
   
class NotepadCloneNoMenu: Form
{
     protected TextBox txtbox;
   
     public static void Main()
     {
          Application.Run(new NotepadCloneNoMenu());
     }
     public NotepadCloneNoMenu()
     {
          Text = "Notepad Clone No Menu";
   
          txtbox             = new TextBox();
          txtbox.Parent      = this;
          txtbox.Dock        = DockStyle.Fill;
          txtbox.BorderStyle = BorderStyle.None;
          txtbox.Multiline   = true;
          txtbox.ScrollBars  = ScrollBars.Both;
          txtbox.AcceptsTab  = true;
     }
}          

   
    
    
  








Related examples in the same category

1.TextBox.AcceptsTab
2.TextBox.Anchor
3.TextBox.BorderStyle
4.TextBox.CanFocus
5.TextBox.Clear()
6.TextBox.Click
7.TextBox.ContextMenu
8.TextBox.ContainsFocus
9.TextBox.DataBindings
10.TextBox.DoDragDrop
11.TextBox.DragDrop
12.TextBox.DragEnter
13.TextBox.Focus()
14.TextBox.Focused
15.TextBox.GotFocus
16.TextBox.KeyPress
17.TextBox.Lines
18.TextBox.LostFocus
19.TextBox.Multiline
20.TextBox.MouseDown
21.TextBox.PasswordChar
22.TextBox.SelectAll()
23.TextBox.SelectedText
24.TextBox.SelectionLength
25.TextBox.TextChanged
26.TextBox.Validated
27.TextBox.Validating