H
Hitchkas
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!");
}
}
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!");
}
}