50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
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 WindowsFormsApplication2
|
|
{
|
|
public partial class Form1 : Form
|
|
{
|
|
public Form1()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
label5.Text = "Chosen Degree: " + comboBox2.SelectedItem.ToString();
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
MessageBox.Show("Thank you for registering");
|
|
}
|
|
|
|
private void monthCalendar1_DateChanged(object sender, DateRangeEventArgs e)
|
|
{
|
|
label4.Text = "Date of Birth: " + e.Start.ToString("d"); // Sets the label text to the selected date in short format
|
|
}
|
|
|
|
private void radioButton1_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
label3.Text = "Sports/Music Experience!";
|
|
}
|
|
|
|
private void textBox2_TextChanged(object sender, EventArgs e)
|
|
{
|
|
label2.Text = "Registration Number " + textBox2.Text;
|
|
}
|
|
|
|
private void textBox1_TextChanged(object sender, EventArgs e)
|
|
{
|
|
label1.Text = "Your name is " + textBox1.Text;
|
|
}
|
|
}
|
|
}
|