Post3 Database project
-
Upload
joms-alancado -
Category
Documents
-
view
12 -
download
0
description
Transcript of Post3 Database project
PowerPoint Presentation
This program is to displays list of students in Datagridview. The system allows the user to search by the students last name, first name and course.POST #3 First: Open the Visual Studio 2012 or C# Application
Second: click new Project
Step 3. Select Visual C# and then select Windows Forms Application after that click OK
Create youre filename hereThird: Create a form like this, drag the selected textbox,button to the form, and also The Datagridview from the ToolBoxEdit the name of textbox and datagridview at the property.
TextBox1button1button2button3button4Datagridview1Fifth: Select the name of your project, then select Add and the click Class.
Select Visual C# Items then select Class andName the class as DBConnect.cs after that click Add button below.
Sixth: 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.5If v4.5 didn't work choose v2.0 or v4.0 versionAfter that select the MySql.Data.dllAnd MySql.Data.Entity.dllThen go to the folder you download including this Power point and select the student_students.sql file then ok andClick the button Start Import
Seventh: Install the MySql installer inside the folder of Automatic load database and open it. Then use password: admin when the installation is complete, after that open the MySQL Workbench application then click or open the Local instance then type the password: admin after that, go to managementThen select Data Import/Restore the follow theInstruction below.
Click thisEight: Go back to the Visual Studio 2012 Application then go to DBConnect.cs and follow this code.
Insert this codeStart coding here
Continue coding here
Continue coding here
Ninth: Go to your form1 or design double click the form and insert this code.Insert thisStart coding here
Continue coding here
Continue coding here
Continue coding hereTenth: Press F5 to run the program. You can search a student by their first name, last name and course
Reference of the program:
Reference of the program:
Thank you ForVisiting My blog
Godbless!!