• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

mdi form resizebegin event not getting raised

I have a main form that is a mdi container. I have a 2nd form which is a mdi child of the main form. I handle both the main form and 2nd forms resizebegin and resizeend events. If the 2nd mdi child form is maximized to fill the main forms application space the events don't get raised. I'm trying to suppress some other functionality when the the form is resizing. Anyone know how to override this behaviour or anternate solutions?
  • 2
1 Solution
Mike TomlinsonMiddle School Assistant TeacherCommented:
You can set a global resizing flag at the MdiParent level when the resize begins/ends and check that whenever the WindowState of the MdiChild is maximized.
Mike TomlinsonMiddle School Assistant TeacherCommented:
...or how about you simply check to see if the windowstate is maximized in the Resize() event?

    Private Sub SomeMidChild_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
        If Me.WindowState <> FormWindowState.Maximized Then

            Debug.Print("SomeMdiChild Resize()")

        End If
    End Sub
glenn_rAuthor Commented:
I rephrased my question in another topic regarding the resizing of a panel on a mdi form. See the thread. Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now