Yup, this would have to be done in the form resize method. Figure out
the initial difference between the listbox's dimensions and the form
dimesions. In the form_resize set the listbox's dimensions equal to the
form dimensions minus the difference. Example:
Form Height =3D 1160
Listbox height =3D160
Form width =3D 2500
Listbox width =3D 500
In form_resize:
Listbox.width =3D form.width - 2000
Listbox.height =3D form.height - 1000
One thing to be careful: have a check to see if the form is being sized
to small. Otherwise you could end up with an error of a listbox having
a negative value for its dimension.
-----Original Message-----
From: Barbara Henthorne [mailto:barjah@h...]
Sent: Tuesday, July 31, 2001 12:41 PM
To: professional vb
Subject: [pro_vb] Listboxes
Is it possible to resize a listbox as you resize your form, much like
how
you can resize grids? If yes, how is this achieved? Thanks.
Barbara
---
You are currently subscribed to pro_vb as: yehuda@i... To
unsubscribe send a blank email to $subst('Email.Unsub')