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. Tool tip text in a button

Tool tip text in a button

Scheduled Pinned Locked Moved C#
csharptutorial
2 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.
  • S Offline
    S Offline
    spy
    wrote on last edited by
    #1

    hey guys.. anyone know how to make tool tip text in a button..im using C#.net 2003..n_n

    K 1 Reply Last reply
    0
    • S spy

      hey guys.. anyone know how to make tool tip text in a button..im using C#.net 2003..n_n

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      I think you are talking about in windows. Here is some sample code form microsoft help:

      // This example assumes that the Form_Load event handling method
      // is connected to the Load event of the form.
      private void Form1_Load(object sender, System.EventArgs e)
      {
      // Create the ToolTip and associate with the Form container.
      ToolTip toolTip1 = new ToolTip();

      // Set up the delays for the ToolTip.
      toolTip1.AutoPopDelay = 5000;
      toolTip1.InitialDelay = 1000;
      toolTip1.ReshowDelay = 500;
      // Force the ToolTip text to be displayed whether or not the form is active.
      toolTip1.ShowAlways = true;

      // Set up the ToolTip text for the Button and Checkbox.
      toolTip1.SetToolTip(this.button1, "My button1");
      toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
      }

      Hope that helps. Ben

      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