[Gtk-sharp-list] Changing the text of a lable ?
Patrik Olterman
patrik@olterman.pp.se
17 Mar 2003 11:57:34 +0100
--=-KL8QQJlL4gbp9jekGXeT
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hello I am really new to C# and GTK# so please excuse my newbie
questions:)=20
I am trying to change the text of a lable when I compile I get the
following error.
olterman@sephiroth:~/code/C#$ mcs -r gtk-sharp -r gnome-sharp form2.cs=20
form2.cs(65) error CS0103: The name `label1.Text' could not be found in
`form2'
form2.cs(72) error CS0103: The name `label1.Text' could not be found in
`form2'
Compilation failed: 2 error(s), 0 warnings
here is the function it barfs on...
-------------------------------------------------------------------------
static void my_handler2(object obj, EventArgs args)
//called when button 2 is pressed
{
Console.WriteLine("Ooh that feels good\a");
label1.Text("Case 2");
}
--=-KL8QQJlL4gbp9jekGXeT
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA+daoeHeA7AF1UGKMRAs5nAJ9kd64gjnKNgfB/1PhZ8mE88yufIACeISOb
p+h1HO5jwffmgTkhRTzztxU=
=ABqK
-----END PGP SIGNATURE-----
--=-KL8QQJlL4gbp9jekGXeT--