Results 1 to 3 of 3

Thread: Form width changing

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455
    Dear VB users,

    I do have a form for choosing: drive / dir /and file.
    Startup position is centre of the screen

    This form will also used for choosing: drive / dir.

    Before I make the form visible, I decrease the form width.
    Everything is working correct only the form is no more in the centre of the screen.

    Do someone knows to get it in the centre?

    Nice regards,

    Michelle.

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    This will center a form in the screen.

    Code:
    Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2, Me.Width, Me.Height
    Hope it helps.
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455
    Hello Iain17,

    I did it know the me.!
    It works good!

    Michelle.

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