Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoid Tab Switching due to Ctrl-PageDown (SSTAB)

Status
Not open for further replies.

IdoMillet

Instructor
Feb 6, 2001
5,290
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top