Welcome to MSDN Blogs Sign in | Join | Help
UltraNav Scroll Helper - followup

As a follow up to my post on getting the DataGridView and UltraNav/IBM scroll button to work, I've created a simple component that makes adding UltraNav support throughout your app easy. The code is contained in a class called UltraNavScrollHelper.

Here are two usages:

A) Use with DataGridView
public class myDGV : DataGridView
{
    private UltraNavScrollHelper scrollHelper;
    public myDGV()
    {
        scrollHelper = new UltraNavScrollHelper(this, this.HorizontalScrollBar, this.VerticalScrollBar);
    }
    protected override void Dispose(bool disposing)
    {
        this.scrollHelper.Dispose();
        base.Dispose(disposing);
    }
}

B) Use at design time with scroll bar controls

  1. Create panel
  2. drag and drop horizontal and vertical scroll bar controls in the panel
  3. drag and drop the UltraNavScrollHelper component from the toolbox
  4. Set the UltraNavScrollHelper Control property to the panel
  5. Set the UltraNavScrollHelper HorizontalScrollBar and VerticalScrollBar properties to the horizontal and vertical scroll bar controls on the panel.
  6. Run

-mark

Posted: Thursday, January 19, 2006 11:18 AM by Mark Rideout [msft]

Comments

Anders said:

This is brilliant! Great work!
Works flawless with no side effects and that helper-class is easy to use. :)

Thanks
# July 22, 2006 10:36 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker