How do I Create a project named DayNight. Include a Form that contains two Buttons, one labeled Day and one labeled Night. Add a Label telling the user to click a button. When the user clicks Day, change the BackColor of the Form to Yellow; when the user clicks Night, change the BackColor of the Form to DarkBlue in C#? Solution Good Wishes, First let me give the code: using System; using System.Drawing; using System.Windows.Forms; namespace DayNight { public partial class Form1 : Form { public Form1() { InitializeComponent(); /*Button button1=new Buton(); Button button2=new Buton();*/ } private void Form1_Load(object sender, EventArgs e) { label1.Text = \"Please click on a button to see the background color change\"; button1.Text = \"Day\"; button2.Text = \"Night\"; } private void button1_Click(object sender, EventArgs e) { this.BackColor = System.Drawing.Color.Yellow; } private void button2_Click(object sender, EventArgs e) { this.BackColor = System.Drawing.Color.DarkBlue; } } } Explaination: Initially i created a project named DayNight namespace DayNight {} Then I created a form public partial class Form1 : Form Then I created a constructor public Form1() { InitializeComponent(); /*Button button1=new Buton(); Button button2=new Buton();*/ } Then i wrote a function to load the form private void Form1_Load(object sender, EventArgs e) { label1.Text = \"Please click on a button to see the background color change\"; button1.Text = \"Day\"; button2.Text = \"Night\"; } In this function I created a label to indicate the user to click on a button label1.Text = \"Please click on a button to see the background color change\"; Next I labelled the two buttons as one \"Day\" and the other \"Night\" button1.Text = \"Day\"; button2.Text = \"Night\"; Then I created a fuction to handle the button1 on click event private void button1_Click(object sender, EventArgs e) { this.BackColor = System.Drawing.Color.Yellow; } here when button1 is clicked the background color of the form changes to Yelow in color. Then I created a fuction to handle the button2 on click event private void button2_Click(object sender, EventArgs e) { this.BackColor = System.Drawing.Color.Dark Blue; } here when button2 is clicked the background color of the form changes to Dark Blue in color. Hope this is clear. .