Scroll event for tab control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Sm9lIFRhdmFyZXM=?=

    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-
  • Mick Doherty

    #2
    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
    The home of TabControlEx as well as Windows Forms programming tips for Vb.net and C#.


    "Joe Tavares" <JoeTavares@dis cussions.micros oft.comwrote in message
    news:031FD264-2370-4DD7-B4F2-091B6193257C@mi crosoft.com...
    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-

    Comment

    Working...