Closed Thread
Results 1 to 4 of 4

Thread: Scroll Bar

  1. #1
    JakeWindu is offline Newbie
    Join Date
    Nov 2009
    Posts
    21
    Rep Power
    0

    Scroll Bar

    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?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Nov 2009
    Location
    I seem to be lost...
    Posts
    1,566
    Blog Entries
    1
    Rep Power
    22

    Re: Scroll Bar

    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.

  4. #3
    lobo521 is offline Learning Programmer
    Join Date
    Jan 2010
    Posts
    57
    Rep Power
    8

    Re: Scroll Bar

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

  5. #4
    pauldaniel is offline Newbie
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Re: Scroll Bar

    just set your forms AutoScroll property to true

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Windows How to keep auto scroll on top when switching screens
    By fortydub in forum Mobile Development
    Replies: 0
    Last Post: 10-11-2011, 03:30 AM
  2. Scroll Bars
    By Root23 in forum JavaScript and CSS
    Replies: 0
    Last Post: 05-30-2011, 11:01 PM
  3. How to display an alert with a scroll bar
    By tarek.mostafa in forum JavaScript and CSS
    Replies: 10
    Last Post: 11-11-2009, 04:29 AM
  4. How to scroll the screen in openGL
    By Daskill in forum C and C++
    Replies: 5
    Last Post: 03-24-2009, 01:50 PM
  5. issue with scroll sync
    By jiggsroger in forum C# Programming
    Replies: 3
    Last Post: 04-09-2008, 10:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts