|
-
Apr 28th, 2006, 02:34 PM
#1
Thread Starter
Member
Using Scroll Bar
How can I make that when I move Scroll bar would move entire form (What is on it) ?
-
Apr 28th, 2006, 03:14 PM
#2
Re: Using Scroll Bar
you mean a scrolling form
__________________
________________0îîî___
___îîî0________(___)____
__(___)_________) _/_____
___\_ (_________(_/______
____\_)_________________
-
Apr 28th, 2006, 03:23 PM
#3
Lively Member
Re: Using Scroll Bar
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
I'm Still learning!
satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
Ur opinions helps me to be better!
Appreciation Triggers Another Good Deeds.
-
Apr 28th, 2006, 03:26 PM
#4
Re: Using Scroll Bar
also make sure that vscroll1 doesnt reach 0 else form will be sort of useless to work upon
__________________
________________0îîî___
___îîî0________(___)____
__(___)_________) _/_____
___\_ (_________(_/______
____\_)_________________
-
Apr 28th, 2006, 05:56 PM
#5
Thread Starter
Member
Re: Using Scroll Bar
I thought how do I move down or up that what is in the form, not the whole form!
-
Apr 28th, 2006, 09:42 PM
#6
Lively Member
Re: Using Scroll Bar
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.
I'm Still learning!
satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
Ur opinions helps me to be better!
Appreciation Triggers Another Good Deeds.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|