[Mono-list] Error compiling GTK# Program

Daniel Morgan danmorg@sc.rr.com
Thu, 27 Mar 2003 14:46:02 -0500


try changing from:

   window1.DefaultSize = new Size(200, 150);

to:

   window1.DefaultSize = new System.Drawing.Size(200, 150);

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Paul Paximadis
Sent: Thursday, March 27, 2003 2:33 PM
To: mono-list@ximian.com
Subject: [Mono-list] Error compiling GTK# Program


Sorry forgot the attachment

When I try and compile the following program( attached ).
I get the following error

C:\mono-0.23>mcs -r gtk-sharp basic_form.cs
basic_form.cs(36) error CS0246: Cannot find type `Size'
Compilation failed: 1 error(s), 0 warnings

Thanks in advance
Paul