Results 1 to 3 of 3

Thread: How do I centre an object on form???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi,

    How do I centre an object on my form??? I tried this:

    CmdContinue.top = form1.width / 2
    CmdContinue.left = form1.height / 2

    You can stop laughing now.



  2. #2
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    Post

    I'm not laughing!!!
    ATT!!!
    CmdContinue.top = form1.height/2-CmdContinue.height/2
    CmdContinue.left = form1.width/2-CmdContinue.width/2


    [This message has been edited by Mimo (edited 11-13-1999).]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Thanks!

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