Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is the coding for creating vertical and horizontal scrollbar on windows form VB in Visual Studio 2012?

after creating the scrollbar in VB design form how do i make it work?
Posted
Updated 31-Mar-15 19:37pm
v3
Comments
Sergey Alexandrovich Kryukov 31-Mar-15 11:23am    
The question makes no sense. Even the name ScrollBar would be ambiguous. Which one, from which library, of what UI element or control? How about some full type names?
—SA
King Fisher 31-Mar-15 11:39am    
Scroll bar for what? where do you want to use?

1 solution

Assuming you are using WinForms:
VB
Dim vs As VScrollBar = New VScrollBar()
Dim hs As ScrollBar = Nnew HScrollBar()
But you will have to size and locate them yourself, and add them to the Form.Controls collection before they are displayed.

Or...you could just drag them from the toolbox onto your form in the designer...
 
Share this answer
 
Comments
asasql 1-Apr-15 0:31am    
thanks.i'll try that.
after creating the scrollbar in design form how do i make it work?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900