List boxes and others suddenly change size :o/

List boxes and others suddenly change size :o/

Post by newspos » Thu, 09 Sep 2004 02:43:10


Anyone else come accross this? While in the GDI list boxes, and dir
controls, suddenly get huge for no reason I can tie down - is this a
known issue?

Marshal
 
 
 

List boxes and others suddenly change size :o/

Post by Ken Halte » Thu, 09 Sep 2004 03:08:40


GDI? Do you mean IDE? What language IDE/Language are you referring to?
If it's .Net related, there are .Net groups. They all contain "dotnet"
or "vsnet" in their names (starting to think I should post this fact at
the beginning of each day)

--
Ken Halter - MS-MVP-VB - http://www.yqcomputer.com/
Please keep all discussions in the groups..

 
 
 

List boxes and others suddenly change size :o/

Post by newspos » Fri, 10 Sep 2004 01:38:11

On Tue, 07 Sep 2004 11:08:40 -0700, Ken Halter




Sorry Ken - a few too many TLAs :o)

It's VB6 I'm using - and the problem is happening when I load up the
project into the graphic development interface (where did I learn that
term???). As I open forms from the project explorer suddenly soem
list boxes have grown to huge sizes - these are saved with the project
if I don't change them every time.

Marshal
 
 
 

List boxes and others suddenly change size :o/

Post by Ken Halte » Fri, 10 Sep 2004 03:01:34


Ok... that's pretty strange. Is this project 'source controlled'? iow,
is it Read Only when you open the project? What I'm getting at requires
that you >>backup<< the project and edit the form file(s) in Notepad so,
of course, they can't be Read Only. They should be checked out of source
control so your changes will be made permanent when you check them back in.

It almost sounds like there's something in the form's .frm file that's
doing this. It maybe as simple as one font over-riding another. I have
such a problem on a specific project (upgraded from VB3) where the font
size box reports "8" but the font's about half a screen tall. Very strange.

If I ever get around to looking into that problem, I'll open the frm
file in Notepad (actually UltraEdit32 here) and remove all references to
any fonts that I find... they usually show up as:

BeginProperty Font
Name = "YourFont"
Size = your size
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty

... just rip that entire block out of the form file (must remove both
the Begin and End lines, as well as everything in between or VB will
barf on that form). If there are no references to any fonts, the form
should open and all controls will be set to their default fonts (MS San
Serif-8 here). From there, you can reset fonts on any controls that need it.

--
Ken Halter - MS-MVP-VB - http://www.yqcomputer.com/
Please keep all discussions in the groups..
 
 
 

List boxes and others suddenly change size :o/

Post by newspos » Fri, 10 Sep 2004 16:28:37

On Wed, 08 Sep 2004 11:01:34 -0700, Ken Halter



<SNIP>

Thanks for that Ken - sounds like a good place to start :)

Marshal