c# - How to get toolTip on CursorPosition not on MousePosition? -


im working on code-editor (windows forms application) , want ask how tooltip position instead of mouseposition make on cursor 1:

get current cursor lower left position tooltip displayed properly

specifically code:

private void panel1_mouseclick(object sender, mouseeventargs e) {   int x = e.x;   int y = e.y + cursor.current.size.height - cursor.current.hotspot.y;   tooltip1.show("test", panel1, x, y); } 

but dont have panel got richtextbox[rtb](serve code editor) , labelbox[lb](serve contexthint) .

anyone pls? in need thanks!


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -