Yes, you're right, Lyubo. Thanks a lot to you, Lyubo.

I've done it.
Now I put this code overlayNode EnabledHandles ^ = AdjustmentHandles. Move;Put it in the NodeModifying of the Diagram.Need to put the overlayNode. EnabledHandles ^ = AdjustmentHandles. Move; Put it in a better place? What event is the NodeModifying function of Diagram?
private void diagram_NodeModifying(object sender, NodeValidationEventArgs e)
{
overlayNode.EnabledHandles ^= AdjustmentHandles.Move;
if (e.Node == overlayNode)
{
if (e.Node.Bounds.Right > imageNode.Bounds.Right || e.Node.Bounds.Bottom > imageNode.Bounds.Bottom)
e.Cancel = true;
textBoxW.Text = overlayNode.Bounds.Width.ToString();
textBoxH.Text = overlayNode.Bounds.Height.ToString();
diagram.InvalidateForeground();
}
}
Cheers,
Jack