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
Post a Comment