|
-
Mar 16th, 2000, 07:53 AM
#1
Thread Starter
Junior Member
When the forms appear in the MDI Parent form, the size of the forms is not the same as it in design mode. My form interface looks really bad when the form is stretched. Is there any way not to let the user to resize the form? Is there a way for the form to keep it's original size when it loads in the MDI parent form? Thanks
Dan
-
Mar 16th, 2000, 09:28 PM
#2
Lively Member
I'm not sure about the rest but to keep the user from resizing the form go to the properties window of the form and change border style to 1-fixed single. Are you setting the size of the forms in code or in the properties window? I set mine in code and that seems to work well. Hope this helps.
Cady
-
Mar 18th, 2000, 02:04 AM
#3
Fanatic Member
I usually set the size of the child form in its load event, and when it appears it is how it should be sized.
The problem with setting the border style to fixed single is that you can't minimize the form.
Although setting the size in the load event makes the child forms initially the correct size, whenever you cascade the windows they change sizes. Anybody know how to stop that?
-
Mar 18th, 2000, 02:57 AM
#4
Fanatic Member
Sorry just made a fool of myself. 
I thought you were talking about the Border Style being Fixed Dialog. Must take in what I'm reading!!
It works just fine as you said.
-
Jun 6th, 2000, 11:54 PM
#5
Addicted Member
I had the same problem.
Add the following code to the mdiChild form:
Private Sub Form_Initialize()
Me.Height = 5760
Me.Width = 10710
End Sub
Private Sub Form_Paint()
If Me.WindowState <> vbMaximized And Me.WindowState <> vbMinimized Then
Me.Height = 5760
Me.Width = 10710
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|