PDA

Click to See Complete Forum and Search --> : How do I centre an object on form???


rino_2
Nov 12th, 1999, 07:32 PM
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.

Mimo
Nov 12th, 1999, 07:42 PM
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).]

rino_2
Nov 12th, 1999, 09:15 PM
Thanks!