Hi,
Can anyone please give me some code or tell me how to attach scroll bars to a form.
Thanx,
Sparky
Printable View
Hi,
Can anyone please give me some code or tell me how to attach scroll bars to a form.
Thanx,
Sparky
You can use the standard VB scroll bar to provide the graphical part of the scroll bar. Actually scrolling the contents of the form might be a bit harder.
you can do it with a single API function call
Code:Option Explicit
Private Declare Function ShowScrollBar Lib "user32" (ByVal hwnd As Long, ByVal wBar As Long, ByVal bShow As Long) As Long
Private Const SB_BOTH = 3
Private Const SB_HORZ = 0
Private Const SB_VERT = 1
Private Sub Form_Load()
Dim ret&
ret = ShowScrollBar(Me.hwnd, SB_BOTH, True)
End Sub