Hi,
I use this code:
Unload frmChild
DoEvents
frmChild.Show
When the child form is shown, its border size remains the same but its location in the parent MDI Form changes. How can i get rid of this?
Thanks
Printable View
Hi,
I use this code:
Unload frmChild
DoEvents
frmChild.Show
When the child form is shown, its border size remains the same but its location in the parent MDI Form changes. How can i get rid of this?
Thanks
It's StartUpPosition property is probobally set to 3 - Windows Default. Try to change it to 1 - CenterOwner.
its set to 0-manual, and i am not able to change it. I get an "invalid property value" when i try to change it.
Ohh... forgot we were talking about MDI's :) Try this (in MDIChild's Form_Resize sub):
Btw... also, try to hide it (Me.Hide) instead of unloading it ;)VB Code:
Private Sub Form_Resize() Me.Move ((MDIForm1.ScaleWidth / 2) - (Me.ScaleWidth / 2)), ((MDIForm1.ScaleHeight / 2) - (Me.ScaleHeight / 2)) End Sub
Thanks Gavio! This worked :wave:
I'm glad it did :DQuote:
Originally Posted by madmaxmenon