c# - How can I create a window with an arrow pointing to another window? -
i able design similar see when exception in visual studio, sort of window line connecting window point in code window. i've included picture of below:

i notice whenever code window loses focus, exception window disappears. when focused, though, can move window around, , arrow continues point @ target.
how being done? specifically, how can draw line 1 window another?
i'm coding in c# , using windows forms.
in example, window exception not disappear if text box loses focus!
by investigating little bit spy++ tool (put find window cursor on line), notice line see between yellow text , exception window contained in window (with transparent background) (with class window of type "windowsforms10.window.8.app.0.34f5582_r41_ad1" in vs 2010). window has ws_popup style, , exact bounding box of line (its size , position fit line).
so can same thing: create transparent popup window, draw line on , set location , size line appears between controls want.
Comments
Post a Comment