Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

This Program Able To Displays List of Students in Data Grid View. The System Allows The User To Search by Last Name, First Name and Course

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

#3

THIS PROGRAM ABLE TO


DISPLAYS LIST OF STUDENTS IN
DATA GRID VIEW. THE SYSTEM
ALLOWS THE USER TO SEARCH BY
LAST NAME, FIRST NAME AND
COURSE.
Marianie B. Gaitan
BSIT3-BL1

STEP 1. OPEN THE VISUAL STUDIO 2012 OR C# APPLICATION

STEP 2. CLICK NEW PROJECT

STEP 3. SELECT VISUAL C# AND THEN SELECT WINDOWS FORMS APPLICATION AFTER THAT CLICK OK.

Edit your
project
name

Step 4.Create a form like this, drag the selected textbox,button to the
form, and also The Datagridview from the ToolBox
TextBox1

button1

Datagridview
1

button2
button4button3

You can edit the name of textbox and data grid view
and also you can edit the value text of button in the

STEP 5.SELECT THE NAME OF YOUR PROJECT HERE, THEN SELECT ADD AFTER THAT
CLICK CLASS.

Select Visual C# Items then select Class


and
Name the class as DBConnect.cs after
that click Add button below.

Step 6. Select Reference in solution Explorer and then select Add


reference

Click browse then go to


C:\Program Files (x86)\MySQL\Connector NET
6.7.4\Assemblies\v4.5
If v4.5 didn't work choose v2.0 or v4.0 version
After that select the MySql.Data.dll
And MySql.Data.Entity.dll

THEN GO TO THE FOLDER YOU DOWNLOAD


INCLUDING THIS POWER POINT AND SELECT THE
STUDENT_STUDENTS.SQL FILE THEN OK AND
CLICK BUTTON START IMPORT

Click this

STEP 7. GO TO DESKTOP AND OPEN THE MYSQL WORKBENCH


APPLICATION IF YOU DONT HAVE THEN TRY TO INSTALL THE
INSTALLER INSIDE THE FOLDER OF AUTOMATIC LOAD DATABASE
THEN USE PASSWORD: ADMIN WHEN THE INSTALLATION IS NEAR
TO COMPLETE, AFTER THAT OPEN THE MYSQL WORKBENCH
APPLICATION THEN CLICK OR OPEN THE LOCAL INSTANCE THEN
TYPE THE PASSWORD: ADMIN AFTER THAT, GO TO MANAGEMENT
THEN SELECT DATA IMPORT/RESTORE THE FOLLOW THE
INSTRUCTION BELOW.

Select
this

Click this

STEP 8. HERES THE CODING PORTION, GO BACK TO THE VISUAL STUDIO 2012
APPLICATION AND GO TO DBCONNECT.CS AND INSERT THIS CODE.

Insert this
code

Start coding
here

Continue coding
here

Continue coding
here

Step 9. Go to your form1 or design double click the form and insert this code.

Insert this
Start coding
here

Continue
coding here

Continue coding
here

Continue
coding here

Step 10: F5 to run the program and the output is look like this. Search by
first name, last name and course.

END

You might also like