C# Beginners Tutorial – 5 – Changing Properties With Code

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

20 responses to “C# Beginners Tutorial – 5 – Changing Properties With Code”

  1. uzair ahmed UAK Avatar

    tnks sir u sol my all problme

  2. Darren Sill Avatar

    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?

  3. Dima Marwan Avatar

    how could I change the backcolor by using the code ?

  4. jomar salvo Avatar

    ilove you boston lol 
    tnx also for sharing your talents!!! 😀

  5. Mister Mimbo Avatar

    Awesome tutorial like it alot^^

  6. Nosa Ayere Avatar

    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"

  7. EnderEgg Avatar

    Amazing work. Loving this videos. Finally something that I can understand 😀 Thanks

  8. ProZhanchi Avatar

    you can write:
    if (button1.Text == "yyy")
    button1.Text = "zzz";
    else
    button1.Text = "yyy";

  9. dklSH123 Avatar

    how can i do that : first click botton the text change to "yyy" second click the text change to "zzz"?

  10. Dragonspiral10 Avatar

    This was before VB I believe. Also I believe you meant Visual Studio not Visual Basic?

  11. Tulanir1 Avatar

    private void textBox1_TextChanged(object sender, EventArgs e)
    {
    if (textBox1.TextLength > 0) {
    button1.Enabled = true;
    }else{
    button1.Enabled = false;
    }
    }

  12. Bram Vermeulen Avatar

    Everything was pre-made and then uploaded 😉

  13. GriM Avatar

    5th tutorial was made 8/12/2011. 196th tutorial was made 8/11/2011… WUT?

  14. Dahmon Bicheno Avatar

    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

  15. Moritz Gunz Avatar

    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.

  16. Leamsi Ordnavi Avatar

    vb.net make the it easy 😀

Leave a Reply

Your email address will not be published. Required fields are marked *