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. Hover on Button

Hover on Button

Scheduled Pinned Locked Moved C#
tutorial
5 Posts 4 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.
  • S Offline
    S Offline
    smarttom99
    wrote on last edited by
    #1

    Does anyone know how to do a hover on a button that displays what the button does like the toolbar does with the text property.

    J V K S 4 Replies Last reply
    0
    • S smarttom99

      Does anyone know how to do a hover on a button that displays what the button does like the toolbar does with the text property.

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      I'm not sure I understand. Could you clarify?

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      1 Reply Last reply
      0
      • S smarttom99

        Does anyone know how to do a hover on a button that displays what the button does like the toolbar does with the text property.

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

        Hook up the mouse hover event of the button and add a tool-tip. Sample code: hook up the event - this.button1.MouseHover += new System.EventHandler(this.button1_MouseHover); define the handler - private void button1_MouseHover(object sender, System.EventArgs e) { ToolTip obTool = new ToolTip(); obTool.SetToolTip( button1, "This would Cancel the form"); }

        1 Reply Last reply
        0
        • S smarttom99

          Does anyone know how to do a hover on a button that displays what the button does like the toolbar does with the text property.

          K Offline
          K Offline
          keithmcd
          wrote on last edited by
          #4

          You'd have to add a tooltip control and tie it to the button - you can set the text and all that on the tooltip control.

          1 Reply Last reply
          0
          • S smarttom99

            Does anyone know how to do a hover on a button that displays what the button does like the toolbar does with the text property.

            S Offline
            S Offline
            smarttom99
            wrote on last edited by
            #5

            Thanks - the tooltip works great. Much appreciated.

            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