Mysterious form height change 
Author Message
 Mysterious form height change

I have a form with the borderstyle set as 1 (Fixed Single).  The height of
the form is set as 6345.  Every once in a while the height of this form
gets reset to 6060.  I've looked in my code and can't find anything that
should reset the height of this form.  I've put a watch the FormName.Height
property with the scope set to all procedures and modules and set it to break
as soon as this property changes.  It will break in the Form_Load event and
most of the time the height is correct, but apparently randomly it will
change to the 6060 value.  I've locked the form, but it didn't make any
difference.

This is especially annoying since I have a label at the bottom of the form
that servers as a sort of status-bar and it gets cut off when the form's
height is reduced.
--
To respond via e-mail, please remove what's between Eric and Goforth in
my address in order to get my real e-mail address.



Sun, 02 Dec 2001 03:00:00 GMT  
 Mysterious form height change
I've noticed the same mysterious behavior with fixed forms in VB6. My work
around is to BF the form size in the forms Load event. I also noticed that
the size would always be right if I simply viewed the form in the IDE before
running it from the IDE.

Weird, isn't it? I haven't checked to see if it still happens now that I've
applied SP3. I've certainly NOT observed the bug since I installed SP3.

Steve

Quote:

> I have a form with the borderstyle set as 1 (Fixed Single).  The height of
> the form is set as 6345.  Every once in a while the height of this form
> gets reset to 6060.  I've looked in my code and can't find anything that
> should reset the height of this form.  I've put a watch the
FormName.Height
> property with the scope set to all procedures and modules and set it to
break
> as soon as this property changes.  It will break in the Form_Load event
and
> most of the time the height is correct, but apparently randomly it will
> change to the 6060 value.  I've locked the form, but it didn't make any
> difference.

> This is especially annoying since I have a label at the bottom of the form
> that servers as a sort of status-bar and it gets cut off when the form's
> height is reduced.
> --
> To respond via e-mail, please remove what's between Eric and Goforth in
> my address in order to get my real e-mail address.



Sun, 02 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Weird Problem - Height of form changes on startup

2. Forms change height

3. Form height keeps changing ?

4. Cant change form.height in sub

5. Setting form width/height = image width/height

6. Help: Can't set form height greater than screen height

7. ActiveX height exceeds form height

8. Mysterious changing font size!! EXCEL VBA

9. Mysterious change of color

10. Mysterious file number changing....

11. Mysterious Auto-Change Fonts

12. Mysterious form unloading

 

 
Powered by phpBB® Forum Software