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. ToolTips for custom tabs

ToolTips for custom tabs

Scheduled Pinned Locked Moved C#
helptutorialquestion
5 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.
  • L Offline
    L Offline
    Libor Tinka
    wrote on last edited by
    #1

    Is it possible to attach ToolTips for individual tabs of a TabControl? I've tried setting ToolTips to TabPage and TabControl, but both attemps failed. This works in Mozilla browser for both selected and unselected tabs. The only solution I thinked up was to catch MouseMove events of a TabControl and look which tab is currently under mouse cursor. There's still a problem of how to show ToolTip (or something similar) statically. But I believe there's some cleaner and easier way.

    I 1 Reply Last reply
    0
    • L Libor Tinka

      Is it possible to attach ToolTips for individual tabs of a TabControl? I've tried setting ToolTips to TabPage and TabControl, but both attemps failed. This works in Mozilla browser for both selected and unselected tabs. The only solution I thinked up was to catch MouseMove events of a TabControl and look which tab is currently under mouse cursor. There's still a problem of how to show ToolTip (or something similar) statically. But I believe there's some cleaner and easier way.

      I Offline
      I Offline
      Ingo
      wrote on last edited by
      #2

      You have to set the 'ShowToolTips' Property of the Tabcontrol to true before the Tooltips of the tabpages are shown. Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!

      L 1 Reply Last reply
      0
      • I Ingo

        You have to set the 'ShowToolTips' Property of the Tabcontrol to true before the Tooltips of the tabpages are shown. Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!

        L Offline
        L Offline
        Libor Tinka
        wrote on last edited by
        #3

        This doesn't work: tabControl1.ShowToolTips = true; ToolTip tt = new ToolTip(); tt.ShowAlways = true; tt.SetToolTip(tabControl1.TabPages[0], "1"); tt.SetToolTip(tabControl1.TabPages[1], "2"); tt.SetToolTip(tabControl1, "tabcontrol"); ToolTip is shown on the tabs, but its the "tabcontrol" ToolTip. The "1" and "2" will show only when user moves cursor on the surface of the selected tab :( Still thanks.

        I 1 Reply Last reply
        0
        • L Libor Tinka

          This doesn't work: tabControl1.ShowToolTips = true; ToolTip tt = new ToolTip(); tt.ShowAlways = true; tt.SetToolTip(tabControl1.TabPages[0], "1"); tt.SetToolTip(tabControl1.TabPages[1], "2"); tt.SetToolTip(tabControl1, "tabcontrol"); ToolTip is shown on the tabs, but its the "tabcontrol" ToolTip. The "1" and "2" will show only when user moves cursor on the surface of the selected tab :( Still thanks.

          I Offline
          I Offline
          Ingo
          wrote on last edited by
          #4

          No you have to set the Tooltip directly: tabpage1.ToolTiptext = "1"; tabpage2.ToolTiptext = "2"; tabcontrol1.ShowTooltips = true; Then it should work. Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!

          L 1 Reply Last reply
          0
          • I Ingo

            No you have to set the Tooltip directly: tabpage1.ToolTiptext = "1"; tabpage2.ToolTiptext = "2"; tabcontrol1.ShowTooltips = true; Then it should work. Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!

            L Offline
            L Offline
            Libor Tinka
            wrote on last edited by
            #5

            I'm dummy, thanks a lot! :)

            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