V
vbguy
I am using this code to move a button at run time.
Everything works as planned, however, I can not click on the button.
It basically freezes the click event and is only movable.
I was told to confirm the location on the mouse up event, but do not
exactly know what that means.
Can anyone help me on this subject?
Thanks in advance
Code:
If e.Button = Windows.Forms.MouseButtons.Left Then
Button1.Capture = False
Dim msg As Message = _
Message.Create(Button1.Handle, WM_NCLBUTTONDOWN, _
New IntPtr(HTCAPTION), IntPtr.Zero)
Me.DefWndProc(msg)
End If
Everything works as planned, however, I can not click on the button.
It basically freezes the click event and is only movable.
I was told to confirm the location on the mouse up event, but do not
exactly know what that means.
Can anyone help me on this subject?
Thanks in advance