+ All Categories
Home > Documents > Post 1 - ListBox Control

Post 1 - ListBox Control

Date post: 09-Apr-2016
Category:
Upload: jaazer-john-cardejon
View: 8 times
Download: 0 times
Share this document with a friend
Description:
Database
13
This program automatically load the database table to a listbox control and the selected value in listbox will dispaly in DataGridView. #1
Transcript
Page 1: Post 1 - ListBox Control

This program automatically load the database table to a listbox

control and the selected value in listbox will dispaly in DataGridView.#1

Page 2: Post 1 - ListBox Control

FIRST: OPEN THE VISUAL STUDIO 2012

Page 3: Post 1 - ListBox Control

SECOND: Click the “New Project”.

Page 4: Post 1 - ListBox Control

THIRD: DOUBLE CLICK THE WINDOWS FORM APPLICATION

(WARNING: EDIT THE NAME FIRST – YOU CAN CHOOSE WHATEVER NAME YOU WANT TO YOUR PROGRAM)

Page 5: Post 1 - ListBox Control

FOURTH: FIND THE LISTBOX TO THE TOOL BOX THEN DRAG IT TO THE FORM.

Page 6: Post 1 - ListBox Control

FIFTH: DOUBLE CLICK THE FORM, IN ORDER TO VIEW THE CLASS.

Page 7: Post 1 - ListBox Control

SIXTH: ON THE RIGHT SIDE, YOU WILL SEE THE NAME OF YOUR PROGRAM, RIGHT CLICK IT, THEN CLICK “ADD REFERENCE”

Page 8: Post 1 - ListBox Control

SEVENTH: AS YOU CLICK THE “ADD REFERENCE” , SEARCH ON THE SEARCH TAB “MySql.Data.dll” CHECK IT (ELSE BROWSE AND FIND IT),

THEN CLICK THE OK BUTTON.

Page 9: Post 1 - ListBox Control

EIGHT: GO TO MySql Work Bench and import your database.

Page 10: Post 1 - ListBox Control

NINETH: INSERT THIS CODES.

Page 11: Post 1 - ListBox Control

NINETH: INSERT THIS CODES.

Page 12: Post 1 - ListBox Control

TENTH: RUN THE PROGRAM.

Modified Output

Page 13: Post 1 - ListBox Control

References


Recommended