Results 1 to 2 of 2

Thread: Zooming Function in VBA

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    263

    Question

    Is there a way that I can create 2 buttons that will will zoom in on my form. I am using a user form in VBA and about 8,000 people will be using it. Not everyone's screen resolution is the same so I need to create some zoom buttons so they can fit it to their liking. So can I create two buttons: one that will zoom in at increments of 5. and one that will zoom out in increments of 5? What is the code for that. Thank you for your help.
    Thanks Alot,

    David Gottlieb
    CIW Certified Internet Webmaster
    Web Developer/Designer

  2. #2
    Guest
    Is this David Gottlieb in Cleveland?

    Maybe use a routine like

    Code:
    Dim c as control
    For each c in myForm.controls
      c.height = c.height * 0.95              '5% smaller
      c.width = c.width * 0.95
    Next c
    But then you have to move all controls 5% closer to each other as well... Maybe working with reference to 0,0?




    [Edited by RoyceWindsor1 on 09-07-2000 at 11:12 AM]

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