locked
How can we override scrolling functionality of winform? RRS feed

  • Question

  • Hi,

    I have to override Scrolling functionality of my windows form. I m developing it in C#.net.
    My use case is that i have to capture click events of vertical scroll bar and scrol my form programatically. So, the default scrolling functionality <making autoscroll = true> should not be functional in this case.
    I tried to capture Scroll event of form, and set the current scroll value as per type of scroll. but If form is resized, offset will need to be changed.
    How can I change the offset?
    Or Is there any other way to achieve my use case.

    thanks in advance!
    Thursday, October 1, 2009 9:36 AM