ok i post SOMETHING SO YOU CAN GUYS CAN HELP ME OUT
X = image boxes
Y = Scrollbar
XXXXXXXXXXXXY
XXXXXXXXXXXXY
XXXXXXXXXXXXY
XXXXXXXXXXXXY
XXXXXXXXXXXXY
XXXXXXXXXXXXY
YYYYYYYYYYYYY
I HOPE THIS HELPS A BIT
Need scrollbars in vb
that "SOMETHING SO YOU GUYS CAN HELP ME OUT" won''t help in the slightest... ...
put on a horizontal scrollbar from the toolbox...
put all of your "tiles" inside a frame and then put that frame inside another frame... the first frame should be the size of your whole map and the second frame should be the size you want to be able to see at any one time...
now put some code into the scroll bars events that reposition the first frame (the larger one) each time you click to scroll... if you set the min of the scroll bar to be "0" and the max of the scroll bar to be the width of your large frame "minus" the width of your small frame then you simply need to set the .left property of the large frame to be -.value of the scroll bar...
use the same principle for the vertical scroll bar...
hope that helps...
put on a horizontal scrollbar from the toolbox...
put all of your "tiles" inside a frame and then put that frame inside another frame... the first frame should be the size of your whole map and the second frame should be the size you want to be able to see at any one time...
now put some code into the scroll bars events that reposition the first frame (the larger one) each time you click to scroll... if you set the min of the scroll bar to be "0" and the max of the scroll bar to be the width of your large frame "minus" the width of your small frame then you simply need to set the .left property of the large frame to be -.value of the scroll bar...
use the same principle for the vertical scroll bar...
hope that helps...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement