[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

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
there is not show, only Equals, Main, or RefernceEqual... i searched the
but there is no answer. can someone help please.

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
right section if necessary. 
View this message in context:
Sent from the Mono - General mailing list archive at Nabble.com.

Mono-list maillist  -  Mono-list at lists.ximian.com

More information about the Mono-list mailing list