I have a user control with 4 panels around a panel in the center.
how it looks like.
Each of the 4 surrounding panels has a "drag handle" on the side towards the center panel. The drag handle works like a splitter and allows to resize the panel. It appears whenever the mouse is over the border between two panels.
To indicate the selected area I wanted to draw a dashed reversible rectangle around the whole panel on mouse down over the drag handle. I tried to do this using ControlPaint.DrawReversibl
t, Color.DimGray, FrameStyle.Dashed);
I have no problems using this in simple constructs on a form following the examples on:
However, I have problems in getting the correct absolute positions to draw the reversible frame for each of my four rectangles if I use my control on a form with a menue.
What ever I tried to do, it looks to me that something like reversibleFrame.Location = control.PointToScreen(cont
does not calculate the correct location. My reversibleFrame appears somewhere on the screen but never exactly on my panels.
What are your suggestions?