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.
VB Code:
  1. ReleaseCapture
  2. SendMessage ctl.hWnd, WM_SYSCOMMAND, SC_MOVE, * '(Ive tried all the borders (HTTOP, HTLEFT, HTBOTTOM, HTRIGHT, ...)
  3. 'I've also tried:
  4. ReleaseCapture
  5. SendMessage ctl.hWnd, WM_SIZE, *BorderValue, 0&
  6. 'but can't get it to work properly
  7. 'I tried combining SC_MOVE and the border values in the first attempt shown, but you get some funky stuff happening
Any ideas?