Form Weirdness 
Author Message
 Form Weirdness

Hi there,

I have created an MDI Form (called mainSTRP), for now that form has but 1
form (frmTest) in it.

frmTest has been created including width and height. It's also set up as a
MDIchild. The weird thing is that when run the form size is changed to a
wider setting. Whatever I do before load - setting the width in code, etc
doesn't work. When I say MDIchild = false the form looks as I have created
it.

How can I maintain my settings and still have it be an MDIchild?

If you can help me solve that I would be eternally greatful!

Yours,

Kevin



Sun, 29 Aug 2004 20:00:26 GMT  
 Form Weirdness
Hi Kevin:

Quote:
> The weird thing is that when run the form size is changed to a
> wider setting.

That is how MDI works.

Quote:
> How can I maintain my settings and still have it be an MDIchild?

You need to do two things:

1.  Ensure that you have set the AutoShowChildren=False on the main MDI Form.

2.  Size the form before you show it, i.e.

Load frmTest
frmTest.Width = ..etc
frmTest.Height = ...etc
frmTest.Show

Hope this helps,

Doug.



Sun, 29 Aug 2004 22:13:10 GMT  
 Form Weirdness
When you load the child form (Load frmTest), you can set the width and
height programmatically from mainSTRP.


Quote:
> Hi there,

> I have created an MDI Form (called mainSTRP), for now that form has but 1
> form (frmTest) in it.

> frmTest has been created including width and height. It's also set up as a
> MDIchild. The weird thing is that when run the form size is changed to a
> wider setting. Whatever I do before load - setting the width in code, etc
> doesn't work. When I say MDIchild = false the form looks as I have created
> it.

> How can I maintain my settings and still have it be an MDIchild?

> If you can help me solve that I would be eternally greatful!

> Yours,

> Kevin



Sun, 29 Aug 2004 22:07:40 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Having 2 Combo boxes on a form causes weirdness

2. VB40: Dim of Forms/Display Weirdness

3. Access 97 Class Mod Error Trap Weirdness

4. CDO sender object weirdness

5. Checking for open file weirdness

6. Document Protection Weirdness

7. Wildcard weirdness

8. Beyond Mail Merge - docvariable weirdness

9. Weirdness with properties in VS

10. ReadOnly Property weirdness in Datagrid?

11. Picture Box Weirdness

12. ZOINKS! Recordset Weirdness

 

 
Powered by phpBB® Forum Software