Scroll event for tab control

  • Thread starter Thread starter Joe Tavares
  • Start date Start date
J

Joe Tavares

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-
 
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.
 
Back
Top