Results 1 to 2 of 2

Thread: Re-Loacting a Form?

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Glasgow, MT, USA
    Posts
    44

    Post

    1. How do I make a From open itself into the Top Right corner of the screen?
    2. What is the code to center a form on the screen, without useing "StartUpPosition"
    3. I have a form that is opened and always on top, I want to be albe to click on it without having the main form show up. But I dont want to hide the main form totally!

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi,

    To make a form appear in the top right corner of the screen try this:

    -----------
    Private Sub Form_Load()
    Form1.Left = Screen.Width - Form1.Width
    Form1.Top = 0
    End Sub
    -----------

    To make a form appear in the centre of the screen try this:

    -----------
    Private Sub Form_Load()
    Form1.Left = Screen.Width / 2 - Form1.Width / 2
    Form1.Top = Screen.Height / 2 - Form1.Height / 3
    End Sub
    -----------

    To do the third thing you want:

    -----------
    'Ask somebody else!
    -----------

    Hope it helps!

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