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

Sandy Armstrong sanfordarmstrong at gmail.com
Wed Nov 19 18:18:30 EST 2008


Abulhija wrote:
> 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.

You need to capitalize the "m" in MessageBox. C# is a case-sensitive
language. "messageBox" refers to your class here that has only a Main
method and some stuff inherited from System.Object (Equals, etc).

Also, it's probably a good idea to name your class something else, like
"MessageBoxTest", so you don't get get confused when trying to use .NET
classes with similar names. :-)

Have fun,
Sandy


More information about the Mono-list mailing list