I assume that “pseudo-project mode” means that your application is at runtime and the end user is experiencing “virtual design mode”: please correct me if I am wrong.
But I assume that you mean Locked lock time for controls and that you want to "emulate" this at runtime ... right?
I also suggest that you attach the mouse up / down / move handlers to the controls that you allow to move, perhaps by iterating over all or a subset of the controls in the form (or the collection that you save the controls are allowed to move).
, , , , , .
, , itho, " " ( " " ... ).
: "" " ": , : " ", "" " . :
hostingForm.ActiveControl, , mousedown (, , ): , , , .
"z-order", , , , , , , .
imho, , , , , "" "" :
private void enableControlsMove()
{
foreach (Control theControl in panel1.Controls)
{
Console.WriteLine(theControl.Name);
theControl.MouseDown += new MouseEventHandler(theControl_MouseDown);
theControl.MouseUp += new MouseEventHandler(theControl_MouseUp);
theControl.MouseMove += new MouseEventHandler(theControl_MouseMove);
}
}
private void disableControlsMove()
{
foreach (Control theControl in panel1.Controls)
{
Console.WriteLine(theControl.Name);
theControl.MouseDown -= theControl_MouseDown;
theControl.MouseUp -= theControl_MouseUp;
theControl.MouseMove -= theControl_MouseMove;
}
}
.
,