[Mono-bugs] [Bug 413141] New: Form: no Shown events on latter ShowDialog calls
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 30 04:58:52 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: andyhume32 at yahoo.co.uk
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list