1 Replies - 891 Views - Last Post: 22 August 2009 - 10:38 PM Rate Topic: -----

#1 C.S.stu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 12-October 08

pictureBox_MouseMove Event

Posted 22 August 2009 - 07:40 AM

private void pictureBox_MouseMove(object sender, MouseEventArgs e)
		{
		  if(TheCursorOnObject(e.X,e.Y))
			 {
				Point tmpp = new Point();
				tmpp.X=e.X;
				tmpp.Y=e.Y;
				Cursor.Position = tmpp;
				toolTip1.Show(tmpp.X,this, tmpp, 8);
			  }
		}




:crazy: :crazy: :crazy: :crazy: :crazy: :crazy: :crazy: :crazy: :crazy: :crazy:

If I move the mouse the tooltip is shown for moment and then disappear before I canít read it even if I still on the same object
What to do???

Is This A Good Question/Topic? 0
  • +

Replies To: pictureBox_MouseMove Event

#2 prankster  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 67
  • Joined: 31-July 09

Re: pictureBox_MouseMove Event

Posted 22 August 2009 - 10:38 PM

If I remember correctly, this line is your problem:

toolTip1.Show(tmpp.X,this, tmpp, 8);


the number 8 for duration is referring to milliseconds, so your tool tip would only flash up for a moment. If you wanted 8 seconds you should have 8000.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1