Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
C#
private void timer1_Tick(object sender, EventArgs e){
            Point pos = Cursor.Position;
            timer1.Interval = 10;
            textBox1.Text = pos.ToString();
}


I get mouse position but ı cant get a word under the mouse cursor. How can I do it ? I use it in web pages
Posted
Comments
CHill60 25-Mar-13 10:08am    
What are you actually trying to achieve here ... highlight a word in a specific text box if the user happens to be in/over that text box when a timer event fires?
Member 9522119 25-Mar-13 10:20am    
it is a example :) Of course ı dont use timer.Normal metod is enough for get a word and I am sorry because of my bad Eng. :)

 
Share this answer
 
Use Tool Tip property...


Hope it helps !!

Thanks
 
Share this answer
 
v2
Comments
Member 9522119 25-Mar-13 11:32am    
tool tip cant help me :(
Member 8649895 27-Mar-13 13:55pm    
what are you trying to acheive exaclty !! I hope title property works !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900