How to create Previous/Next Page button on Scrollbar?

  • Thread starter Thread starter rh
  • Start date Start date
R

rh

Hi, is there a property on the VScrollbar to activate this feature or is
custom coding required?

This feature exists on MS Word's vertical scrollbar and I would like to add
this feature to my VB.NET Windows app (to the scrollbar on a DataGrid and a
TreeView).

Any suggestions? Thanks in advance.
 
Hi!
Use
[System.Runtime.InteropServices.DllImport("User32.dll")]
public extern static void PostMessage(IntPtr hwnd, uint message, int wparam,
int lparam);

For scroll down one page use:
PostMessage(yourcontrol.Handle, 0x0115, 2, 0);

For scroll up one page use:
PostMessage(yourcontrol.Handle, 0x0115, 3, 0);
 
Back
Top