Jan 11, 2005 #1 sujark Programmer Jul 27, 2001 27 US Hello all, I have a simple VB form and I am placing the control in the centre of the form. But when I run it, the form moves to the right top corner of the form. Does anybody know why this is happening? Thanks in advance.
Hello all, I have a simple VB form and I am placing the control in the centre of the form. But when I run it, the form moves to the right top corner of the form. Does anybody know why this is happening? Thanks in advance.
Jan 11, 2005 #2 SonOfEmidec1100 Technical User Aug 12, 2001 965 AU Somewhere, maybe the form load event maybe you do something like controlname.top = 0 controlname.left = 0 Upvote 0 Downvote
Somewhere, maybe the form load event maybe you do something like controlname.top = 0 controlname.left = 0
Jan 11, 2005 #3 ZmrAbdulla Technical User Apr 22, 2003 4,364 AE Set StartUp position to CenterScreen from the Properties window if you want the form to open in the center of the screen. or look into these links [ul] [li] Center a form taking the taskbar into account [/li] [li] Center an image on a form[/li] [li]Center the controls on a form[/li] [/ul] regards Zameer Abdulla Visit Me Where to pay your [purple]Tsunami[/purple] relief donations? Upvote 0 Downvote
Set StartUp position to CenterScreen from the Properties window if you want the form to open in the center of the screen. or look into these links [ul] [li] Center a form taking the taskbar into account [/li] [li] Center an image on a form[/li] [li]Center the controls on a form[/li] [/ul] regards Zameer Abdulla Visit Me Where to pay your [purple]Tsunami[/purple] relief donations?