Subject: Relative Control Positioning
Posted By: rodmcleay Post Date: 1/23/2007 11:25:31 PM
C# 2.0, vs.net 2005, Windows Forms.

Hi all,
I would like to know the correct way to display a user control next to its parent user control.

The situation is that a control has a button show hide another control, the original control is inside a nest of spt containers and panels.
I wish the newy displayed control to show over all other controls on the form but remain next to the control that loaded it when the form moves.

I have looked into the PointToClient and that seems to place the control in the correct place but it does not remain there when the form is resized or moved and the original control that loaded it has moved.

I wish for it to remain relative to the control that loaded it, kind of like a tool tip or context menu but remaining persistant when it loses focus.

Any assistance would be much appreciated.

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================

Go to topic 55293

Return to index page 55
Return to index page 54
Return to index page 53
Return to index page 52
Return to index page 51
Return to index page 50
Return to index page 49
Return to index page 48
Return to index page 47
Return to index page 46