Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 StudentRegistrationApplication
- {
- public partial class frmStudentRegistration : Form
- {
- public frmStudentRegistration()
- {
- InitializeComponent();
- for (int day = 1; day <= 31; day++)
- {
- ComboBoxDay.Items.Add(day);
- }
- for (int month = 1; month <= 12; month++)
- {
- ComboBoxMonth.Items.Add(month);
- }
- for (int year = 1900; year <= 2021; year++)
- {
- ComboBoxYear.Items.Add(year);
- }
- }
- private void BtnRegisterStudent_Click(object sender, EventArgs e)
- {
- String LastName = TxtboxLastName.Text;
- String StudentName = TxtboxFirstName.Text;
- String MiddleName = TxtboxMiddleName.Text;
- RadioButtonMale.Checked = true;
- RadioButtonFemale.Checked = true;
- this.Hide();
- frmStudentRegistration2 fsr2 = new frmStudentRegistration2();
- fsr2.ShowDialog();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement