Results 1 to 4 of 4

Thread: Moving controls on a form

  1. #1

    Thread Starter
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621

    Moving controls on a form

    Does anyone know the best way to move controls on a form when it is resized.

    I have a form with 3 command buttons in the bottom right hand corner of the form.

    When I maximize the form I want to be able to set the commmand buttons in the same area of the maximized form and vice versa.

    Thanks

    Gary
    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


  2. #2
    Fanatic Member TokersBall_CDXX's Avatar
    Join Date
    Mar 2003
    Location
    America
    Posts
    571
    Me.cmd1.Left = Me.ScaleWidth - Me.cmd1.Width

    in the resize method of the form
    Build your own personalized flash based chat room for your webpage for FREE! http://www.4computerheaven.com

  3. #3

    Thread Starter
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621
    Thanks TokersBall

    Much appreciated
    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


  4. #4
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    If you search for this thing on this forum you will find plenty of examples. However, what i've found out is those examples may not be 100 % perfect in your case. So you look at the examples and try and write your own logic that fits your scenario.

    In other words, resizing in VB 6 sux.

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