Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Docking Controls

Status
Not open for further replies.

colobill

Programmer
Dec 16, 2003
22
US
Does anyone know of any routines to dock controls in VB 6? Some of our users still use 640 x 480, however some will have much higher resolution. For example, buttons on the bottom of the screen need to stay there, regardless of the resolution. Or fields and grids in the middle of the screen need to stay there regardless of the resolution.
 
You could just calculate position from form scaleheight and control height. For example to put a command button at the bottom of of the form:

Command1.Top = Me.ScaleHeight - Command1.Height


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top