Modal form will not close


May 23, 2012
I have a form that is instantiated with the following code. When I click the ok or cancel buttons that are on the form I call me.close() but the form does not close. I just stays on my screen and my application is hung. The form is not running on the same thread as the main form.

           If _frmAppManpower Is Nothing Then
                _frmAppManpower = New frmAppManpower
                AddHandler _frmAppManpower.FormClosed, AddressOf OnFormClosed
            End If
            With _frmAppManpower
                .RosterID = rosterID
                .ApparatusName = apparatusName
                .TopMost = True
                .WindowState = FormWindowState.Normal
                .TopMost = False
            End With
Last edited by a moderator:
Top Bottom