ScrollBar in a TabPage

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
 
B

baramuse

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top