Re: [VB5] Can controls resize and position themselves?
- From: "Phill W." <p-.-a-.-w-a-r-d-@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 16 May 2008 11:18:50 +0100
Gilles Ganault wrote:
Although forms have a WindowState property that can be set to "2 -
Maximized" so at least forms can fit any screen, widgets within forms
don't seem to have any property so they can resize and/or reposition
themselves to fit the user's screen definition:
Are there tricks in VB, or third-party tools that would solve this
issue?
Put code into Form_Resize to move and resize [all] the controls to where you want them to be.
Remember to use Me.ScaleWidth and Me.ScaleHeight for the measurements of the Form itself; these represent the "Client Area", i.e. the bit /inside/ the borders and menus.
Me.txtFormFillingTextBox.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
HTH,
Phill W.
.
- Follow-Ups:
- Re: [VB5] Can controls resize and position themselves?
- From: Gilles Ganault
- Re: [VB5] Can controls resize and position themselves?
- From: Karl E. Peterson
- Re: [VB5] Can controls resize and position themselves?
- References:
- [VB5] Can controls resize and position themselves?
- From: Gilles Ganault
- [VB5] Can controls resize and position themselves?
- Prev by Date: Re: Rapid gfx display Qs
- Next by Date: Re: How to convert extra long strings into their equivalent Hex Strings in VBA (Word 2K)
- Previous by thread: Re: [VB5] Can controls resize and position themselves?
- Next by thread: Re: [VB5] Can controls resize and position themselves?
- Index(es):
Relevant Pages
|