[Mono-bugs] [Bug 365662] New: ShutdownMode.AfterAllFormsClose (i.e. shutdown " when last form closes") does not work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 28 12:08:07 EST 2008


           Summary: ShutdownMode.AfterAllFormsClose (i.e. shutdown "when
                    last form closes") does not work
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: VB Runtime
        AssignedTo: rkvinge at novell.com
        ReportedBy: sbrooks at quantussoftware.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

A VB application with a shutdown mode "When last form closes" (i.e.
ShutdownMode.AfterAllFormsClose) exits after the main form is closed.

To Reproduce:
1. Create a VB application with Visual Studio 2008
2. In "My Project", under "Application", set "Shutdown mode" to "When last form
3. Create "Form1" and "Form2" as Windows Forms ("Form1" is the startup form)
4. In "Form1", add a button with the following Click handler:
        Dim form As New Form2
5. Run the program
6. Click on the button

Actual Behavior:
When you click on the button, the program exits

Expected Behavior:
When you click on the button, Form2 is displayed, Form1 is closed, and the
program continues to run until Form2 is closed

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list