https://bugzilla.novell.com/show_bug.cgi?id=365662
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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Description:
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
closes"
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
form.Show()
Close()
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs