Problem with C # Mono + Winforms MessageBox

I have a file called hellowf.cs

class MyFirstApp {
static void Main() {
     System.Windows.Forms.MessageBox.Show("Hello, Mono+WinForms!");
   }
}

In Ubuntu 8.10 I do the following

gmcs hellowf.cs -r:System.Drawing.dll -r:System.Windows.Forms.dll
mono hellowf.exe

... and it looks like this:

alt text http://img136.imageshack.us/img136/4674/helloproblemuk5.png


The second part of the message is missing. Why is this happening? The same binary file - hellowf.exe - works fine on Windows.


Update: This is really annoying. Here are the mono versions that I had, and have been trying to do this job so far:

    1.9.1 (from official ubuntu repo)
    2.0.1 (from some some 3rd party repo)
    2.2   (wiped every mono pkg and compiled myself)

My current mono version:

mono --version
Mono JIT compiler version 2.2 (tarball Wed Jan 14 22:58:21 CET 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    GC:            Included Boehm (with typed GC)
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none
gmcs --version
Mono C# compiler version 2.2.0.0

... any clues?

+5
source share
5 answers

, . , Mono, . , " " . . "" " System->Preferences->Appearance->Fonts->Details . !

+3

opensuse 11.0, mono 2.0.1.

, , .

+1

@ ", Mono + WinForms!". , .

0

: , . .

:, +!
.
, , .

, MessageBox , , , : " !"

0

, / libgdiplus? , System.Drawing libgdiplus .

0

All Articles