943,854 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 4099
  • C# RSS
Jul 3rd, 2009
0

tooltip on mouse click

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
travis67 is offline Offline
9 posts
since Jun 2009
Jul 3rd, 2009
0

Re: tooltip on mouse click

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

c# Syntax (Toggle Plain Text)
  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. }
Reputation Points: 10
Solved Threads: 1
Newbie Poster
codeManJones is offline Offline
4 posts
since Jun 2009
Jul 3rd, 2009
0

Re: tooltip on mouse click

Thanks. It works.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
travis67 is offline Offline
9 posts
since Jun 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Buttons Enabled Property not Working Properly
Next Thread in C# Forum Timeline: opacity control...?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC