Add ScrollBars to TextBox : TextBox : GUI Windows Form C# Source Code


Custom Search

C# Source Code » GUI Windows Form » TextBox »

 

Add ScrollBars to TextBox








    
 

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;
     }
}          

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo GUI Windows Form
» TextBox