开发者

get the text under the mouse pointer

开发者 https://www.devze.com 2023-01-27 09:01 出处:网络
i am relatively new to C#. can anybody please tell me how to display the tool tip on the text editor...just as VS intellisense expands a particular method when we move the mouse over it??? Since i am

i am relatively new to C#. can anybody please tell me how to display the tool tip on the text editor...just as VS intellisense expands a particular method when we move the mouse over it??? Since i am Developing an adding i want the tool tip to be displayed on document (there is no 开发者_StackOverflowform associated with it) how to get the text under the mouse pointer thanx in advance


Off the top of my head look at the ToolTip class. I am sure you need to supply it with the x,y coordinates of where you want it to be displayed. So you just need to get the x,y coordinates of the mouse which should be simple enough.

0

精彩评论

暂无评论...
验证码 换一张
取 消