https://bugzilla.novell.com/show_bug.cgi?id=365653
Summary: WindowsFormsApplicationBase.OnCreateMainForm should not
throw exception
Product: Mono: Class Libraries
Version: 1.9.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: VB Runtime
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
When deriving a new application class from
Microsoft.VisualBasic.ApplicationServices.WindowsFormApplicationBase, the
following code works on Microsoft .NET:
Public Class MyApplication
Inherits
Microsoft.VisualBasic.ApplicationServices.WindowsFormApplicationBase
Protected Overrides Sub OnCreateMainForm()
MyBase.OnCreateMainForm()
MainForm = New Form1()
End Sub
End Class
However, on Mono, MyBase.OnCreateMainForm() throws a NotImplementedException.
Basically, it looks like on Microsoft's .NET
WindowsFormApplicationBase.OnCreateMainForm() does nothing (i.e. does not set
the main form and does not throw an exception), but
WindowsFormApplicationBase.Run() will throw an exception, after calling
OnCreateMainForm(), if MainForm is Nothing.
Obviously, this can be worked around by removing the unnecessary call to
MyBase.OnCreateMainForm().
--
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