Home C#.net C#.net Color Change Example

C#.net Color Change Example

50 second read
0
0
281

This Example will teach you how to do the C#.net Color Change step by step

Paste the code inside the Ok Button

           String name = txtText.Text;

            if (Option.SelectedItem.Equals("Red"))
            {
                lblmsg.Text = name;
                lblmsg.ForeColor = Color.Red;
            }
            else if (Option.SelectedItem.Equals("Green"))
            {
                lblmsg.Text = name;
                lblmsg.ForeColor = Color.Green;
            }
            else
            {
                lblmsg.Text = name;
                lblmsg.ForeColor = Color.Blue;
            }

i have attached the video link below. which will do this tutorials step by step.

 

    Load More Related Articles
    Load More By admin
    Load More In C#.net

    Leave a Reply

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

    Check Also

    Laravel 11 CRUD Mastering RESTful API MVC with Repository Pattern

    In this tutorial will teach Laravel 11 Api MVC with Repository Pattern Crud Application st…