[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
C# Beginners Tutorial – 5 – Changing Properties With Code
by
Tags:
Comments
20 responses to “C# Beginners Tutorial – 5 – Changing Properties With Code”
-
tnks sir u sol my all problme
-
Great
-
yep
-
I done the previous tutorial to display a message box when the button is clicked. I've edited the callback to now say " button1.Text = "aaa" " and nothing else, now when i run it and click the button, the text does not change and the old message box still appears. Any ideas what's going wrong?
-
how could I change the backcolor by using the code ?
-
ilove you boston lol
tnx also for sharing your talents!!! 😀 -
Awesome tutorial like it alot^^
-
can't you peeps just appreciatiate something good.. if you can't do that make your own videos and don't watch this ones.. "Grow up"
-
Amazing work. Loving this videos. Finally something that I can understand 😀 Thanks
-
you can write:
if (button1.Text == "yyy")
button1.Text = "zzz";
else
button1.Text = "yyy"; -
how can i do that : first click botton the text change to "yyy" second click the text change to "zzz"?
-
This was before VB I believe. Also I believe you meant Visual Studio not Visual Basic?
-
Thanks
-
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (textBox1.TextLength > 0) {
button1.Enabled = true;
}else{
button1.Enabled = false;
}
} -
Everything was pre-made and then uploaded 😉
-
5th tutorial was made 8/12/2011. 196th tutorial was made 8/11/2011… WUT?
-
can i make it so that a button is not enabled but if a text box has ANY text in it, it will become enabled.
please help -
If you do want them to change during runtime, it's not possible with the properties panel, otherwise I'd always do it in the properties panel, as setting it in the code just messes your code up.
-
Thank you…
-
vb.net make the it easy 😀
Leave a Reply