[Mono-winforms-list] Question about MessageBox()
sanfordarmstrong at gmail.com
Sat Jun 21 08:33:37 EDT 2008
On Sat, Jun 21, 2008 at 4:03 AM, Anthony Papillion <papillion at gmail.com> wrote:
> Hello Everyone,
> I'm pretty new to Mono. In fact, I downloaded and installed it on my Ubuntu
> system last night and it looks very promising. The first thing I tried was a
> simple 'Hello World' C# program to get the feel of the place and I
> immediately ran into a showstopper.
> All I wanted to do was to display a messagebox. So I used typical .NET
> syntax as:
> MessageBox.Show("Hello C# World!", "Hello World", MessageBoxButtons.OK,
> When I tried to compile it, I was told that the system didn't know what
> MessageBox was in the current context. When I tried to add a reference to
> the System.Windows.Forms I couldn't do it as the MonoDevelop enviroment had
> no idea what I was talking about and told me the type or namespace didn't
First, do you have libmono-winforms2.0-cil installed?
Second, did you remember to add a System.Windows.Forms reference to
the project itself?
Third, do you have the correct using statements in you C# files?
More information about the Mono-winforms-list