I am looking for a way to allow the user to resize a control at run-time. I tried using SendMessage like for resizing a borderless form but can not get it to work correctly. I have tried many variations of SendMessage but still it will not work properly.
Any ideas?VB Code:
ReleaseCapture SendMessage ctl.hWnd, WM_SYSCOMMAND, SC_MOVE, * '(Ive tried all the borders (HTTOP, HTLEFT, HTBOTTOM, HTRIGHT, ...) 'I've also tried: ReleaseCapture SendMessage ctl.hWnd, WM_SIZE, *BorderValue, 0& 'but can't get it to work properly 'I tried combining SC_MOVE and the border values in the first attempt shown, but you get some funky stuff happening


Reply With Quote