Form Controls Assignment
I wish to create the below form and submit details to other form.
private void Registration_Load(object sender, EventArgs e)
{
//Code present in this section will be executed when the form loads
dtDOB.MaxDate = DateTime.Today;
}
private void btnSubmit_Click(object sender, EventArgs e)
{
ShowDetails D = new ShowDetails();
D.data = txtName.Text + " Has Registerd for " + cbCourse.Text + " in College " + lbCollege.Text + " Succesfully ";
if (cbGraduate.Checked == false)
D.data = D.data + " As you are not a Graduate student, and as per records of your date of birth " + dtDOB.Value.Date.ToString() + " you are eligible ";
this.Hide();
if (rbFemale.Checked == true)
D.data = D.data + "You are first Female Student";
D.data = D.data + rbComments.Text;
D.Show();
}
Form Controls Assignment
Reviewed by Share less to Learn More
on
7:02 PM
Rating:
No comments