By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,460 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,460 IT Pros & Developers. It's quick & easy.

How to create Previous/Next Page button on Scrollbar?

P: n/a
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.
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi!
Use
[System.Runtime.InteropServices.DllImport("User32.d ll")]
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);
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.