and if they're in the panel:
vb Code:
worker.boundControls.Add(New MoveResizeControl.controlHandler.boundControl(Panel1, Button1))
then you also need to use the panel's MouseDown + Paint events instead of the form's events
It works great, but when I drag the control over the initial size of the panel, the auto scroll function is on and is extending the size of panel, when I click on any place of the panel, a running error occurs (NullReferenceException - Object reference not set to an instance of an object.)... So what should I do to handle this type of error???
vb Code:
Private Sub mControl_Move(ByVal sender As Object, ByVal e As System.EventArgs)
activeControl.Invalidate() '<-- This line having error
Application.DoEvents()
drawBoundingRectangle()
paintresize()
End Sub