Results 1 to 2 of 2

Thread: [2005]MDI forms question

  1. #1

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    [2005]MDI forms question

    OK I tried holding off on asking this, but I just can't seem to find a solution, so now have to ask ...

    I have an MDI form called "MDIParent1". I have another form called "Form1".

    I am trying to make Form1 a child of MDIParent1, and so when I statr the app my child form sits nicely inside my parent form.

    It doesn't. All I see is the child form on screen.

    I have no idea how to make the connection.

    I have this ...... which is quite obviously wrong

    Code:
    Private Sub MDIParent1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Form1.MdiParent = Me
            ActivateMdiChild(Form1)
            'Form1.Show()
    End Sub
    I am only guessing it even goes in the MDIParent Load event. Why do I get the feeling I am in for a hard slog stepping up from VB6 !

  2. #2

    Thread Starter
    Frenzied Member TheBionicOrange's Avatar
    Join Date
    Apr 2001
    Location
    Cardiff, UK
    Posts
    1,818

    Re: [2005]MDI forms question

    OK just realised i needed
    Code:
    Form1.Show
    Now I just have to try and get the sizing right !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width