the problem was the wmp fills the form. i modified it for you
http://www.scproject.biz/Zepphire%20TV%20Studio.zip
Printable View
the problem was the wmp fills the form. i modified it for you
http://www.scproject.biz/Zepphire%20TV%20Studio.zip
tearsculprit, are the controls in the panel or on the form?
if they're on the form, you bind them with:
vb Code:
worker.boundControls.Add(New MoveResizeControl.controlHandler.boundControl(Me, Button1))
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???Quote:
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
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