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. Tab page events

Tab page events

Scheduled Pinned Locked Moved C#
question
3 Posts 2 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.
  • V Offline
    V Offline
    vlusardi
    wrote on last edited by
    #1

    Is there a way to get a tab page change event (or any event for that matter) to fire when you click the "tab" portion of the tab page...??? All the events I've tried seem to need a click in the tab page body in order to fire... I need to be able to do some "init" coding on tab pages as soon as the tab label is clicked, without having to first click in the tab page body, and I'm wondering if anyone has some advice as to how this can be done... thanks.

    M 1 Reply Last reply
    0
    • V vlusardi

      Is there a way to get a tab page change event (or any event for that matter) to fire when you click the "tab" portion of the tab page...??? All the events I've tried seem to need a click in the tab page body in order to fire... I need to be able to do some "init" coding on tab pages as soon as the tab label is clicked, without having to first click in the tab page body, and I'm wondering if anyone has some advice as to how this can be done... thanks.

      M Offline
      M Offline
      monrobot13
      wrote on last edited by
      #2

      You can use the SelectedIndexChanged event of the TabControl. This event fires whenever the selected tab page changes. The selectedindex property of the TabControl will be the page that was selected (0 based). - monrobot13

      V 1 Reply Last reply
      0
      • M monrobot13

        You can use the SelectedIndexChanged event of the TabControl. This event fires whenever the selected tab page changes. The selectedindex property of the TabControl will be the page that was selected (0 based). - monrobot13

        V Offline
        V Offline
        vlusardi
        wrote on last edited by
        #3

        Yo, thanks for the clue, that's what I was looking for.... I owe you a beverage...

        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