|
Subject:
|
Form alignment
|
|
Posted By:
|
cpopham
|
Post Date:
|
12/22/2003 9:27:49 AM
|
Does anyone know of a bit of code to align a form on open to the left and top of the screen?
Thanks, Chester
|
|
Reply By:
|
Deepesh_Jain
|
Reply Date:
|
12/25/2003 2:24:10 AM
|
quote: Originally posted by cpopham
Does anyone know of a bit of code to align a form on open to the left and top of the screen?
Thanks, Chester
You must use the screen object of the VB. It provides you the screen width and screen height, you can set the control or form top and left position.
Best Regards Deepesh Jain
Deepesh Jain VB,VBA & .NET Specialist Wiley Support Team
|
|
Reply By:
|
cpopham
|
Reply Date:
|
12/29/2003 8:50:47 AM
|
Okay thanks....
|
|
Reply By:
|
DBoulos
|
Reply Date:
|
1/2/2004 6:21:10 PM
|
Use the "Move" method eg; Forms.frmCountries.Move Left:78, Top:0, Width:0, Length:0 or Forms(0).Move Left:0, Top:0 (extreme left & top) To give you some reference, I have a 17" screen, my form grid is in inches Y=30 X=30... ...for me to place the form to the extreme right & top .Move Left:15500, Top:0
|