Hi!
I am wondering, how do you get a vertical scroll bar to work?
I made a notepad app using the tutorial on this site and I added a scroll bar, how do i get the scroll bar to work?
You can turn Auto Scroll to true in the properties which will add a scroll bar any time needed but if that isn't what you want this may help - How to add scrollbars in C#? - Software Development.Hope this helped.![]()
Knowledge: Intermediate C#, Beginner AS3, HTML, CSS, Binary, Hex, Octal.
Science is only an educated theory, which we cannot disprove.
Simple notepad:
Code:using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); var textBox = new TextBox { Multiline = true, ScrollBars = ScrollBars.Vertical, Dock = DockStyle.Fill }; Controls.Add(textBox); } } }
just set your forms AutoScroll property to true
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks