vertical Scroll bar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, all

I am newer to CF.NET

I want to add my form a Vertical scroll bar by hand.
How to do it? and How to handle scroll bar Event?

Thanks
 
Hi,Thanks a lot
But,My VerticalScroll does not display?
Where is error?

public class myForm :Form
{
private VScrollBar vsBar;

public myForm
{
this.vSBar = new VScrollBar();
this.vSBar.Width = 10;
this.vSBar.Visible = true;
this.vSBar.Show();
this.vSBar.Location = new Point(this.screenWidth - 10, 0);
this.vSBar.Height = 1000;
this.vSBar.ValueChanged += new EventHandler(this.Scroll_Click);
this.Controls.Add(this.vSBar);
}

}

Thanks
 
Back
Top