I Have a VB.Net 2008 application where the KeyPreview is enabled for the main form, which (unfortunately) also has an SSTab control.
I need to respond to a Ctrl-PageDown by scrolling a document on the 2nd tab rather than the default SSTAB handling of going to the previous Tab.
The problem is that the SSTab control is responding to the KeyDown event even before the main form KeyDown event is fired. There is some discussion of this bug in: but that document is old (vb6) and the problem persists even when I try to remove focus from the SSTab control.
I can take control of things within the SSTAB keydown event and reselect the original tab but that's too late. The switching between the tabs is still visible to the user.
Is there a way to avoid tab switching due to Ctrl-PageDown on a form with an SSTAB control?
Thanks,
- Ido
view, email, export, burst, distribute, and schedule Crystal Reports.
I need to respond to a Ctrl-PageDown by scrolling a document on the 2nd tab rather than the default SSTAB handling of going to the previous Tab.
The problem is that the SSTab control is responding to the KeyDown event even before the main form KeyDown event is fired. There is some discussion of this bug in: but that document is old (vb6) and the problem persists even when I try to remove focus from the SSTab control.
I can take control of things within the SSTAB keydown event and reselect the original tab but that's too late. The switching between the tabs is still visible to the user.
Is there a way to avoid tab switching due to Ctrl-PageDown on a form with an SSTAB control?
Thanks,
- Ido
view, email, export, burst, distribute, and schedule Crystal Reports.