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

Chris Howie cdhowie at gmail.com
Wed Nov 19 20:02:39 EST 2008


On Mon, Nov 17, 2008 at 6:40 PM, Abulhija <mohammad.nemer at vista.aero> 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.
> thanks
>
> am working on ubuntu 8.10, MonoDevelop version 1.0

In addition, make sure that you're referencing System.Windows.Forms in
your project.  (Right-click References under your project and select
Edit.)  The Show method is capitalized as well, and the compiler will
not find it if letters are not the proper case.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list