Results 1 to 4 of 4

Thread: Shortcut Key Of Controls In SSTab

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Question Shortcut Key Of Controls In SSTab

    A SSTab control has 5 tabs. Assume that Tab1 & Tab2 have a CheckBox each & the shortcut key for both the CheckBoxes is, say, Alt+M (using & in the Caption property of the CheckBoxes).

    Irrespective of which tab I am currently in, keeping Alt+M on the keyboard pressed alternates the focus between the 2 CheckBoxes but I want that when I am in Tab1, pressing Alt+M on the keyboard (or keeping it pressed) should only shift the focus on the CheckBox that resides in Tab1. Similarly, when I am in Tab2, pressing Alt+M on the keyboard (or keeping it pressed) should only shift the focus on the CheckBox that resides in Tab2.

    How do I accomplish this?

    The fact is there are so many controls in the 5 tabs that I am finding it difficult to assign a unique shortcut key to each of them.


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  2. #2
    Frenzied Member
    Join Date
    Dec 2007
    Posts
    1,072

    Re: Shortcut Key Of Controls In SSTab

    Use the form's keypress event?

    Then check which tab has focus...

  3. #3

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Re: Shortcut Key Of Controls In SSTab

    But how do I check which tab has the focus in the Form's KeyPress event?


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  4. #4
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Shortcut Key Of Controls In SSTab

    This will display the selected tab index.

    Code:
    MsgBox tb.SelectedItem.index

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width