Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. short cut key for tabpages of tabcontrol

short cut key for tabpages of tabcontrol

Scheduled Pinned Locked Moved C#
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anu Palavila
    wrote on last edited by
    #1

    In my windows form I have a tabcontrol with 3 tabpages. How can I add shotcut key so that while the tabcontrol is loaded I can visit each tab page through the shortcut key

    Thanks & Regards

    D T 2 Replies Last reply
    0
    • A Anu Palavila

      In my windows form I have a tabcontrol with 3 tabpages. How can I add shotcut key so that while the tabcontrol is loaded I can visit each tab page through the shortcut key

      Thanks & Regards

      D Offline
      D Offline
      Dave Sexton
      wrote on last edited by
      #2

      Handle the KeyPress Event[^] of the form.

      But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
      Because programming is an art, not a science. Marc Clifton
      I gave up when I couldn't spell "egg". Justine Allen

      1 Reply Last reply
      0
      • A Anu Palavila

        In my windows form I have a tabcontrol with 3 tabpages. How can I add shotcut key so that while the tabcontrol is loaded I can visit each tab page through the shortcut key

        Thanks & Regards

        T Offline
        T Offline
        Thomas Stockwell
        wrote on last edited by
        #3

        You can of course handle the events manually based on what the other CP member posted. One option that works with almost everything (not sure about tab pages), is to include an underscore before the appropriate letter in the tabpage letter. When the user presses Alt the underscores will show in the application and the appropriate letter can be sent with the alt statement.

        Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups