[Mono-osx] monomac - how to call a new window when push a button
vipboy286 at gmail.com
Thu Apr 19 07:51:10 UTC 2012
My project MOnoMAC have a 2 form(Form/Views): Mainwindown and form2 (I
create form2 : New -> monomac -> Cocoa View with controller > name is :
IN MainWindown have a button. I want to when I click the button, Mainwindow
will call form2 show/visible.
Action when click button is : a1 . This is my code :
partial void a1 (NSObject sender)
Console.WriteLine ("a1 button click");
form2 f2 = new form2(); //err here
message err is : : Error CS1729: The type `trans2window.form2' does not
contain a constructor that takes `0' arguments (CS1729) (trans2window)
so, I want to call the form2 show, what I must do ?
Please help me! thank you !
View this message in context: http://mono.1490590.n4.nabble.com/monomac-how-to-call-a-new-window-when-push-a-button-tp4570147p4570147.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx