6 Replies - 2650 Views - Last Post: 10 February 2011 - 04:07 AM Rate Topic: -----

#1 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1820
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

How to make MDI Child to conform to the change of parent

Posted 07 February 2011 - 06:10 PM

OK I have a problem, the issue is: i have my project using one MDI and other normal forms. I have set my other forms to open inside the MDI. like
form1.MDIParent = me
form1.show()  

but if I resize the MDI form1 does not change to accomodate in the new size!??? Is there any help for this??
THANKS ALOT
Is This A Good Question/Topic? 0
  • +

Replies To: How to make MDI Child to conform to the change of parent

#2 Guest_Jim*


Reputation:

Re: How to make MDI Child to conform to the change of parent

Posted 07 February 2011 - 07:23 PM

You are creating a new instance of the form, right?

        With New Form1
            .MdiParent = Me
            .Text = "Window " & sNumber
            .Show()
        End With



I wasn't able to re-produce your problem--maybe you could show a little more of your code.

Jim
Was This Post Helpful? 1

#3 TADS  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 10
  • View blog
  • Posts: 161
  • Joined: 09-August 08

Re: How to make MDI Child to conform to the change of parent

Posted 08 February 2011 - 04:45 AM

how about trying...

Dim F As New Form1
F.MdiParent = Me
F.Show()


Was This Post Helpful? 1
  • +
  • -

#4 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1820
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: How to make MDI Child to conform to the change of parent

Posted 08 February 2011 - 04:43 PM

Ok thanks but this is not my problem, I have other forms linked there but I want when the MDI form change size then hey accomodate the size of the MDI parent
Was This Post Helpful? 0
  • +
  • -

#5 Guest_Jim*


Reputation:

Re: How to make MDI Child to conform to the change of parent

Posted 08 February 2011 - 08:41 PM

You sure you know what you want? You don't seem to be able to express it very well. . . . Maybe you could show a picture?

Jim
Was This Post Helpful? 0

#6 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1820
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: How to make MDI Child to conform to the change of parent

Posted 09 February 2011 - 05:44 PM

Ok look at the pictures:
Attached Image
Attached Image
Was This Post Helpful? 0
  • +
  • -

#7 TADS  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 10
  • View blog
  • Posts: 161
  • Joined: 09-August 08

Re: How to make MDI Child to conform to the change of parent

Posted 10 February 2011 - 04:07 AM

how about doing something like...

in MDIParent1_ClientSizeChanged

If Me.WindowState = FormWindowState.Maximized Then
            F.WindowState = FormWindowState.Maximized
        ElseIf Me.WindowState = FormWindowState.Normal Then
            F.WindowState = FormWindowState.Normal
        End If



something like this??

hope it helps

Kev
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1