tooltip on mouse click

Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
Reply

Join Date: Jun 2009
Posts: 9
Reputation: travis67 is an unknown quantity at this point 
Solved Threads: 0
travis67 travis67 is offline Offline
Newbie Poster

tooltip on mouse click

 
0
  #1
Jul 3rd, 2009
Hi again. I need to make tooltip work on mouse click, so when I click on the button for an example, a popup info should appear.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 4
Reputation: codeManJones is an unknown quantity at this point 
Solved Threads: 1
codeManJones codeManJones is offline Offline
Newbie Poster

Re: tooltip on mouse click

 
0
  #2
Jul 3rd, 2009
hi travis,

first drag the tooltip onto your form, then put the line below in your button click event. you can set some options in the tooltip.Show() method

  1. private void button1_Click_1(object sender, EventArgs e)
  2. {
  3. toolTip1.Show("Tip Text Here", button1); //shows the tip on the button
  4. toolTip1.Show("Tip Text Here", button1, 0, -50, 2500); //shows 50 pixels above the button for 2.5 seconds
  5. }
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 9
Reputation: travis67 is an unknown quantity at this point 
Solved Threads: 0
travis67 travis67 is offline Offline
Newbie Poster

Re: tooltip on mouse click

 
0
  #3
Jul 3rd, 2009
Thanks. It works.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC