How can I make that when I move Scroll bar would move entire form (What is on it) ?
Printable View
How can I make that when I move Scroll bar would move entire form (What is on it) ?
you mean a scrolling form
VB Code:
Private Sub Form_Load() With VScroll1 .Min = 1 .Max = 30000 .SmallChange = 100 .LargeChange = 1000 .Value = 1 End With End Sub -------------------------------------------------------------------------- Private Sub VScroll1_Change() Frame1.Top = VScroll1.Value End Sub
also make sure that vscroll1 doesnt reach 0 else form will be sort of useless to work upon
I thought how do I move down or up that what is in the form, not the whole form!
the code that i gave you will not move the whole form, it will only move the frame which is the frame1 up and down. The idea is that, u put all your objects i.e. buttons, textbox, picturebox, etc in frame1. And you can scroll the frame up and down without even need to resize the form.