Beginner: C# Winform in Linux using Mono
- From: Hitchkas <hitchkas@xxxxxxxxx>
- Date: Tue, 19 Jun 2007 14:46:19 -0700
I have a very beginner and fundamental question regarding porting and
running C# programs in Linux. As a background I am a total idiot when
it comes to Linux but somehow managed to install Ubuntu 7.04 Feisty
Fawn and Monodevelop 0.12 on a machine. So far so good, however I
cannot compile and run a simplest winform application. Basically,
"System.Windows.Forms" is not recognized and cannot even do a
MessageBox.Show.
So, my basic question is what I have to do to be able to compile and
run the following simple Winform application on Ubuntu 7.04 with
momodevelp 0.12? Apparently "System.Windows.Forms" is missing and
cannot get and install it. Any help or pointer is highly appreciated.
------------ sample program from mono site ------------------
using System;
using System.Drawing;
using System.Windows.Forms;
public class HelloWorld : Form
{
static public void Main ()
{
Application.Run (new HelloWorld ());
}
public HelloWorld ()
{
Button b = new Button ();
b.Text = "Click Me!";
b.Click += new EventHandler (Button_Click);
Controls.Add (b);
}
private void Button_Click (object sender, EventArgs e)
{
MessageBox.Show ("Button Clicked!");
}
}
.
- Follow-Ups:
- Re: Beginner: C# Winform in Linux using Mono
- From: Tom Spink
- Re: Beginner: C# Winform in Linux using Mono
- From: Peter Bradley
- Re: Beginner: C# Winform in Linux using Mono
- Prev by Date: Re: Preventing an app from being launched more than once
- Next by Date: Re: Preventing an app from being launched more than once
- Previous by thread: Preventing an app from being launched more than once
- Next by thread: Re: Beginner: C# Winform in Linux using Mono
- Index(es):
Relevant Pages
|