DocumentationInIntegrativeProgramming Corcino
DocumentationInIntegrativeProgramming Corcino
Adrian Berino
Kleford Edianel
Aaron Alcantara
BSIT 402
6. Create a unique variable for each of your textboxes, checked list group and combo box to call later on.
7. Create a query to insert the info put by the user input into the database and to call the table data into
their separate variables.
8. Create a clear button to clear all the textboxes, checked list group and combo box.8. choose
15. after creating a table you will prompt to this setup where all the data will nested in, put in these
necessary columns for these are the table where the information will stay.
16. Run the code to see if there are no errors.
Code:
using MySql.Data.MySqlClient;
namespace DatabaseCorcino
{
public partial class Form1 : Form
{
string connectionString = "datasource=localhost;port=3306;user=root;password=;database=info";
public Form1()
{
InitializeComponent();
}
// Concatenate the selected course(s) into a single string with comma separator
string courses = "";
foreach (var course in checkedListBoxCourses.CheckedItems)
{
if (courses != "") courses += ", "; // Add separator if not the first course selected
courses += course.ToString();
}