Results 1 to 2 of 2

Thread: Resize at Run-Time

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Wisconsin
    Posts
    64

    Resize at Run-Time

    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?

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Use the controls .Width, .Height, .Top, and .Left properties to resize it.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width