
Listbox changes height when moved from Windows 3.11 to Windows 95
Hi,
I've noticed when a project containing a listbox is moved from Windows
3.11 to Windows 95 environment, VB forces the listbox to change its
height. I conducted some tests and found out that the smallest height
value for a listbox in Windows 3.11 is 225 twips. The same setting in
Windows 95 is 255 twips. In both environments, one may increase or
decrease the height in increments of 195 twips only. This means that if
your project contains a listbox that measures, for example, 810 twips in
height in Windows 3.11, the height of the listbox will have to be
adjusted to either 645 or 840 twips once its moved to Windows 95. In my
case, both VB 16-bit and 32-bit automatically adjusted the list box to
645 twips when I moved my project from Windows 3.11 to Windows 95. Does
anyone know how to prevent this from happening? Also, I havent had the
chance to run my tests in Windows NT 3.5 to 4.0. If someone does, please
post the results.
Regards,
Ray