Windows Vista Forums

Scroll event for tab control

  1. #1


    Joe Tavares Guest

    Scroll event for tab control

    Is there an event that I can use to detect when the tabs in the tab control
    have been scrolled (Multiline is set to false)?



    I am refering to the mini scroll buttons that appear where there are too
    many tabs in the control to display.

    thanks,
    -joe-

      My System SpecsSystem Spec

  2. #2


    Mick Doherty Guest

    Re: Scroll event for tab control

    There is no .net event for this behaviour, but the win32 control upon which
    it is based does send a WM_HSCROLL message. You can intercept and respond to
    this by either Inheriting TabControl and overriding the WndProc() method or
    by creating a NativeWindow class to catch the messages.

    --
    Mick Doherty
    http://dotnetrix.co.uk/nothing.htm

    "Joe Tavares" <JoeTavares@xxxxxx> wrote in message
    news:031FD264-2370-4DD7-B4F2-091B6193257C@xxxxxx

    > Is there an event that I can use to detect when the tabs in the tab
    > control
    > have been scrolled (Multiline is set to false)?
    >
    > I am refering to the mini scroll buttons that appear where there are too
    > many tabs in the control to display.
    >
    > thanks,
    > -joe-


      My System SpecsSystem Spec

Scroll event for tab control

Similar Threads
Thread Thread Starter Forum Replies Last Post
CAPI2 Event 11 and Event 30 and Event 82 Errors Ken Vista General 0 09 Oct 2009
HELP need to solve this problem asap - Unable to start event viewer/event log service aabb Software 3 26 Apr 2009
Scroll wheel on mouse doesnt scroll page Luke Vista installation & setup 3 15 Jan 2008
How to specify an event handler for the GridViewColumnHeader control in C#? wackyphill@yahoo.com Avalon 6 07 Nov 2006
Automatic Event Handler method for on the fly generated zammel control Hardikbill Indigo 2 18 Sep 2006