[Mono-winforms-list] When will winforms be working?

karmjunk@netscape.net karmjunk@netscape.net
Wed, 28 Jan 2004 23:28:52 -0500


I was pretty excited about writing a gui app with C# under Linux.  What a disappointment. I first install Mono via Red-Carpet. I then did the mono-wine patch. I have also compiled the daily snapshot of 01/21/2004 but still see no improvements on getting any C# Gui app to running under Linux.  

I am hoping that someone has had success with the winforms and mono.  So if you have any suggestion on how to get the gui up and running I would really be greatful.  


Symptom 1:
I can compile a simple c# Winforms program (see below test1.cs) without any errors, but when I run the  exe a dialog appears with message "An exception was thrown by the type initializer for System.Drawing.GDIPlus" 

Symptom 2:
I complied the test app checkedListBoxCtrl.cs from the sample winform links of mono.   In the Console it gives me "Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.EntryPointNotFoundException: GdiplusStartup"

-------------------test1.cs------------------------
using System.Windows.Forms;
using System.Drawing;

namespace Test
{
   public class Test : System.Windows.Forms.Form
   {
      public Test():base()
      {
         this.Text = "My First Test";
         this.TabIndex = 0;
         this.Size = new System.Drawing.Size(512, 320);
      }

      public static void Main(string[] args)
      {
         Test t = new Test();
         System.Console.WriteLine("Test object is "+t);
         Application.Run(t);
         System.Console.WriteLine("Hello World");
      }
   }
}




__________________________________________________________________
New! Unlimited Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!

Netscape. Just the Net You Need.