[Mono-winforms-list] Problem with windows forms

Jurek Bartuszek koxta@koxta.net
Sun, 26 Dec 2004 15:42:32 +0100


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

|> e) cd mcs/class/Managed.Windows.Forms
|> f) make clean; make install
|
| If you've not used --prefix in ./autogen.sh, then this is fine. If you
| have used it then you need make prefix=<somewhere> install here.

Of course, my mistake... I should have written make prefix=/usr install
in my previous mail... forgot about it. However, my problem is already
solved. Thanks alot!

Now I am fighting with TextBox:

koxta@hell csharp $ mcs file.cs -r:System.Windows.Forms,System.Drawing
file.cs(13) error CS0246: Cannot find type 'TextBox'
Compilation failed: 1 error(s), 0 warnings

Did I miss something?

The code snippet:

using System;
using System.Drawing;
using System.Windows.Forms;

public class EventFrm2 : Form
{
~  private System.ComponentModel.Container components = null;

~  // Create an instance of a Button
~  private Button btn1;
~  private Label label1;
~  private Label label2;
~  private TextBox textBox1;

...
}

That's where the error occurs. Any ideas?

Regards,

Jurek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBzs3Y6l8uJkeTVlMRAtDUAJ4z/FLQjzXTgwSOufo5v56v8GLxngCgoDsR
IMcb42IhkwyOXWDvq6veg2g=
=aOMs
-----END PGP SIGNATURE-----