using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Week2_Practical { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void label1_Click(object sender, EventArgs e) { } private void buttonHello_Click(object sender, EventArgs e) { MessageBox.Show("Hello Ryan!"); buttonChangeColour.Enabled = true; } /// /// This will close the application. /// /// /// private void buttonExit_Click(object sender, EventArgs e) { Application.Exit(); } /// /// Changes background colour of all buttons /// /// /// private void buttonChangeColour_Click(object sender, EventArgs e) { buttonChangeColour.BackColor = Color.Yellow; buttonExit.BackColor = Color.Yellow; buttonHello.BackColor = Color.Yellow; } } }