ScrollBar in a TabPage

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

Guest

Hello,

I am currently working on a Smart Device Application with a TabControl and
four TabPages. I want to add a vertical Scrollbar in one TabPage. Does
anybody know how I can realize that??

Best Regards

mathon
 
mathon said:
Hello,

I am currently working on a Smart Device Application with a TabControl and
four TabPages. I want to add a vertical Scrollbar in one TabPage. Does
anybody know how I can realize that??

Best Regards

mathon
Hi !

I guess you can add one Panel and one VScrollBar on your TabPage.
Then on the "ValueChanged" event of your scroolbar you change the "Top"
property of your added panel to make it move up or down. Typically :
vsb = new VScrollBar();
....
vsb.Minimum = 0;
vsb.ValueChanged+=...

Panel p = new Panel();
....

and in the ValueChanged callback you just have to put:
p.Top = -vbs.value;

Hope it'll help you :)
 
Back
Top