如何将光标下的单词转到文本框! [英] How to get the word under the cursor to text box !

查看:84
本文介绍了如何将光标下的单词转到文本框!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

http://stackoverflow.com/questions/13070841/how-to-get-specific-text-value-from-a-textbox-based -upon-the-mouse-position [ ^ ]





请参考上面的链接....我希望它可以帮助你... :)
http://stackoverflow.com/questions/13070841/how-to-get-specific-text-value-from-a-textbox-based-upon-the-mouse-position[^]


Please refer above link....I hope it helps you...:)


使用工具提示属性...





希望它有所帮助!!



谢谢
Use Tool Tip property...


Hope it helps !!

Thanks


这篇关于如何将光标下的单词转到文本框!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆