Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

child form cutting off inside MDI parent form?

Status
Not open for further replies.

STPMB

Programmer
Sep 13, 2002
28
US
I can't seem to figure out why a child form is being cut in size to fit inside the parent form eventhough the size fields of the child form are smaller than the parent form.
Any ideas?
 
If an MDI Child form is sizeable, VB seems to resize it when it loads. If anyone knows why I'd be curious to find out.

I always explicitly set the Height and Width properties in the form's Load event to correct this problem.
 
I've been confused a bit by that to but just opted to also have a bit of code that resized the form to the proper size on loading.
 
I designed up my forms on a Windows 98 machine and when I run the app on an XP machine the child form also gets chopped at the bottom

Also if you created a project using the wizard the size of the MDI form is recovered from the registry using GetSettings and SaveSettings

Comment out the GetSettings on the MDI Form load. Resize it manually then exit the app. The new size will be stored in the registry. Uncomment the Getsettings and next time the form loads it will have the new size.

Hope this helps.

I can only suspect that on XP the larger size of the window title causes the child to shift down in the window but the window size remains constant thus cutting the bottom edge of the child.

Does anyone have a solution here?

Thanks

Mike When you call out for help in the darkness, and you hear a voice in return, you're probably just talking to yourself again!
 

How much is being cut off? Scroll bar size?
What is the WindowState of the Child forms set to? [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top