[Mono-list] messageBox.show() is not there!?

Trimble, Nathan G nathan.trimble at pnl.gov
Wed Nov 19 18:13:26 EST 2008


Check your case.  It's MessageBox.Show.  You are trying to use a method
on your class that contains Main (messageBox), not the MessageBox that
is in System.Windows.Forms.  You should change the name of your class to
something else to avoid confusion.  Something like MessageBoxExample.

-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Abulhija
Sent: Monday, November 17, 2008 3:40 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] messageBox.show() is not there!?


hi am new to mono and C# i have a small code i want to write, here is
the
code

using System;
using System.Windows.Forms;

public class messageBox
{
         public static void Main()
                  {
                         messageBox.show("something goes here");
                  }
}

simple very easy, the problem that when i reach the part
messageBox.show(),
there is not show, only Equals, Main, or RefernceEqual... i searched the
net
but there is no answer. can someone help please.
thanks

am working on ubuntu 8.10, MonoDevelop version 1.0

thanks again.

PS: not sure if this is the right section to post in. please move it to
the
right section if necessary. 
-- 
View this message in context:
http://www.nabble.com/messageBox.show%28%29-is-not-there%21--tp20550486p
20550486.html
Sent from the Mono - General mailing list archive at Nabble.com.

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


More information about the Mono-list mailing list