https://bugzilla.novell.com/show_bug.cgi?id=413141
Summary: Form: no Shown events on latter ShowDialog calls
Product: Mono: Class Libraries
Version: 1.9
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Created an attachment (id=230669)
--> (https://bugzilla.novell.com/attachment.cgi?id=230669)
Repro -- shows Form open/close events for ShowDialog and Show
See attached repro app. Hit ShowDialog then close the sub-form three times.
Expect logging:
[[
* SubForm.ShowDialog(this)
Creating SubForm.
SubForm.Load SubForm.Activated SubForm.Activated SubForm.Shown
SubForm.Closing SubForm.FormClosing SubForm.Closed SubForm.FormClosed
SubForm.Deactivate
* SubForm.ShowDialog(this)
SubForm.Load SubForm.Activated SubForm.Activated SubForm.Shown
SubForm.Closing SubForm.FormClosing SubForm.Closed SubForm.FormClosed
SubForm.Deactivate
* SubForm.ShowDialog(this)
SubForm.Load SubForm.Activated SubForm.Activated SubForm.Shown
SubForm.Closing SubForm.FormClosing SubForm.Closed SubForm.FormClosed
SubForm.Deactivate
]]
But see:
[[
* SubForm.ShowDialog(this)
Creating SubForm.
SubForm.Load SubForm.Activated SubForm.Activated SubForm.Shown
SubForm.Closing SubForm.FormClosing SubForm.Closed SubForm.FormClosed
SubForm.Deactivate SubForm.Closing SubForm.FormClosing
* SubForm.ShowDialog(this)
SubForm.Load SubForm.Activated SubForm.Activated
SubForm.Closing SubForm.FormClosing SubForm.Closed SubForm.FormClosed
SubForm.Deactivate SubForm.Closing SubForm.FormClosing SubForm.Closed
SubForm.FormClosed
* SubForm.ShowDialog(this)
SubForm.Load SubForm.Activated SubForm.Activated
SubForm.Closing SubForm.FormClosing SubForm.Closed SubForm.FormClosed
SubForm.Deactivate SubForm.Closing SubForm.FormClosing SubForm.Closed
SubForm.FormClosed
]]
Note that the Shown event *only* occurs in the first show and not in the latter
ones.
I'll log another bug for the duplicate close events
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs