Results 1 to 2 of 2

Thread: OCX help!?!?!

  1. #1

    Thread Starter
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510

    Question

    Anyone know where I can find an .OCX that will resize all of the controls in my project automatically to fit the users screen display??? Thanks.

  2. #2
    Guest
    Try this code. It uses a For Each Loop and loops through all of the Controls on the Form and Resizes them.

    Code:
    ' Declare a variable
    Dim Obj As Object
    
    ' Loop through all controls on the Form
    For Each Obj In Controls
        ' Move the controls to fit the Screen's width and Height
        Obj.Move 0, 0, Screen.Width, Screen.Height
    Next Obj

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