[Gtk-sharp-list] Field members in gtk#
Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo)
vrrivaro at gmail.com
Thu Nov 30 04:34:50 EST 2006
Hi Czarek,
2006/11/29, Cezary Zawadzki <czarekzaw at wp.pl>:
>
> Hi!
>
> My name is Czarek and I'm from Poland.
> I've decided to write to you, because I really don't know
> where to find a good tutorial about gtk#. There are programs
> only for a console, but I couldn't find for windows.
> I tried to write a simple window program, but
> I really don't know how to use members. For example
> I added two buttons and one label. Then i wanted to change a text
> in the label (in windows: this.label1.text=...), but
> i didn't find a member "label1". Please help me (if you can).
>
> best regards
> Czarek
Shaika Dzari already told you where to find tutorials, so I won't go into that.
Let me tell you that C# is case sensitive (yes, even MS's version).
What the problem probably was in your particular code is that you
wrote:
this.label1.text="something";
When you should have written:
this.Label1.Text = "something";
By the way, the class library is written in C#, so it is allways case
sensitive regardless of language you use it to access it. Other things
might not be, but the class library is.
Why? This is a perfectly legal declaration in C#:
public class CaseSensitive
{
public int N;
public int n;
}
Now, if CaseSensitive was called from a case insensitive language, and
you issued:
casEsensitivE.N
There would be no way of knowing which casEsensitivE.N you refer to.
Jesus bless you,
Victor Rivarola
--
FANÁTICO
"Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
Apocalipsis 3:16
LOCO
"Porque la Palabra de la Cruz es locura para los que se pierden; pero a
los que se salvan, esto es, a nosotros, es poder de Dios."
1 Corintios 1:18
More information about the Gtk-sharp-list
mailing list