Results 1 to 2 of 2

Thread: Form Minimum size

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Location
    Brisbane, Australia
    Posts
    11

    Form Minimum size

    Hi all, I just trying to work out the form minimum size property and I find that I can get it to work properly for a normal form or an MDI parent form, but MDI Child forms don't work properly.

    the code I am using to create the child form is this:
    Code:
        Private Sub New_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNew.Click
            Dim f As New Form2()
            Dim s As Size
    
            s.Width = 300
            s.Height = 200
            f.MdiParent = Me
            f.MinimumSize = s
            f.Show()
        End Sub

    Am I doing something wrong or is this a bug/missing feature of MDI Child forms?

    Eamon

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Location
    Brisbane, Australia
    Posts
    11

    Still not fixed.

    Sorry if anyone got that last post (now deleted). I had said that I had it fixed, but I wasn't thinking clearly. What I had done was remove the line
    Code:
    f.MdiParent = Me
    so it wasn't an MDI child form.

    If it is an MDI Child, it still doesn't respect the minimum size property.

    Eamon

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