[Mono-list] Windows Forms - VS2005 Menu Constructor...

Bruce Carson bcarson at asgoth.com
Fri Dec 15 12:40:15 EST 2006

When editing Windows Forms using Visual Studio, it puts a parameter in the
constructor of the menu item:
        private System.Windows.Forms.MainMenu mainMenu1;
        this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);

Currently Mono does not support this method...I have been hand-editing to
remove the "this.components" from the ctor, but everytime I edit the Form,
VS rebuilds this method call.

It would be "nice" if Mono treated this call like a call with no parameters
(perhaps putting out an "Unimplemented" debug message)?  In other words
treat it similarly to the Control::set_AutoSize(bool) method.  This
work-around could be removed once the constructor is actually supported in


More information about the Mono-list mailing list