You can send the WM_NCLBUTTONDOWN message with one of these values as the wParam:
Use these with SendMessage in the MouseDown event of your images.VB Code:
Private Const HTLEFT = 10 Private Const HTRIGHT = 11 Private Const HTTOP = 12 Private Const HTBOTTOM = 15 Private Const HTBOTTOMLEFT = 16 Private Const HTBOTTOMRIGHT = 17 Private Const HTTOPLEFT = 13 Private Const HTTOPRIGHT = 14
Remember that you first must make a call to ReleaseCapture (I suspect you use simular code to move the form when you hit your TitleBar).
Best regards




Reply With Quote