PC Review


Reply
Thread Tools Rate Thread

How to create Previous/Next Page button on Scrollbar?

 
 
rh
Guest
Posts: n/a
 
      8th Mar 2005
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.


 
Reply With Quote
 
 
 
 
Adrian
Guest
Posts: n/a
 
      9th Mar 2005
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);


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Back button does not take me to the previous page Brad Windows XP Internet Explorer 1 22nd Sep 2008 07:51 AM
Previous button always moves to title page George Microsoft Word Document Management 0 4th Jul 2008 06:45 PM
How to create Previous/Next Page button on Scrollbar? rh Microsoft C# .NET 1 9th Mar 2005 09:06 AM
How to create Previous/Next Page button on Scrollbar? rh Microsoft Dot NET Framework Forms 1 9th Mar 2005 09:06 AM
Clicking the BACK button does not go to previous page Sachin Windows XP Internet Explorer 0 18th Aug 2004 05:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 AM.