0% found this document useful (0 votes)
7 views3 pages

Integ

The document contains C# code for a Windows Forms application that allows users to register their birthdate and personal information. It includes dropdowns for selecting day, month, and year, as well as fields for first name, middle name, last name, and gender. Upon clicking the submit button, it validates the inputs and displays a confirmation message with the entered details if all fields are filled correctly.

Uploaded by

santosivanbofill
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Integ

The document contains C# code for a Windows Forms application that allows users to register their birthdate and personal information. It includes dropdowns for selecting day, month, and year, as well as fields for first name, middle name, last name, and gender. Upon clicking the submit button, it validates the inputs and displays a confirmation message with the entered details if all fields are filled correctly.

Uploaded by

santosivanbofill
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Ivan B.

Santos Integrative Programming

ACT401
Code:

using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using static [Link];

namespace integ
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 1; i <= 31; i++)
{
[Link](i);
}
for (int i = 1; i <= 12; i++)
{
[Link](i);
}
for (int i = 1990; i <= 2025; i++)
{
[Link](i);
}
}
private void button1_Click(object sender, EventArgs e)
{
if ([Link] == "" ||
[Link] == "" ||
[Link] == "")
{
[Link]("Please select your complete birthdate.",
"Missing Information",
[Link],
[Link]);
return;
}
string Gender = "";

if ([Link])
Gender = "Male";
else if ([Link])
Gender = "Female";
else
{
[Link]("Please select gender.",
"Missing Information",
[Link],
[Link]);
return;
}
if ([Link] == "" ||
[Link] == "" ||
[Link] == "")
{
[Link]("Please fill in all name fields.",
"Missing Information",
[Link],
[Link]);
return;
}
[Link]("Congrats \nStudent Register! \n" + "Full Name: " + [Link] + " "
+ [Link] + " " + [Link] + "\n" + "Gender: " + Gender + "\n" + "Date of Birth: " + [Link] + "-" +
[Link] + "-" + [Link]);

}
}
}

You might also like