Following some of the kind advice I've had, I tried the following (from the Borland site except that I've done it in monodevelop and added references to System.Windows.Forms and System.Drawing.

using System;
using System.Windows.Forms;
using System.Drawing;

class HelloWindowsForms {
   static void Main() {
       MessageBox.Show("Welcome to the Bill-free zone!");
   }
}

This appears to compile OK, but when I try to run it from the IDE, I get:

Could not load winelib.exe.so
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.Win32 ---> System.DllNotFoundException: winelib.exe.so
in <0x00053> (wrapper managed-to-native) System.Windows.Forms.Win32:WineLoadLibrary (string)
in [0x0014b] (at /cvs/1-mono/mcs/class/System.Windows.Forms/System.Windows.Forms/win32functions.cs:1430) System.Windows.Forms.Win32:.cctor ()
--- End of inner exception stack trace ---


in (unmanaged) System.Windows.Forms.MessageBox:Show (string)
in [0x00011] (at /cvs/1-mono/mcs/class/System.Windows.Forms/System.Windows.Forms/MessageBox.cs:59) System.Windows.Forms.MessageBox:Show (string)
in [0x00005] (at /home/peter/Projects/HelloWindowsForms/frmHelloWindows.cs:10) HelloWindowsForms:Main ()



press any key to continue...

Can anyone help?

Cheers

Peter

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to