Hi.
I'm not exactly sure HOW to do it, but I believe you could use the WndProc method of the form and check for WM_NCMBUTTONDOWN and WM_NCMBUTTONUP messages.
Something like this maybe...
VB Code:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m.Msg = WM_NCMBUTTONDOWN Then 'User clicked the caption or one of the edges 'Block Imagesizing here ElseIf m.Msg = WM_NCMBUTTONUP Then 'User released the caption or one of the edges 'Perform resize here if size has changed End If MyBase.WndProc(m) End Sub
I hope this is of any help...




Reply With Quote