post1 - automatic load database

11
 This pr ogram au tomatically loads database table to a listbox control and the selected value in listbox will appear in DataGridView. POST #! Submitted by! Dianne "ae . Gali$a %S&T' %( Submitted to! "s. )ristine *oy V. "artine$ &TP+,- DT%S/ "0G/"/0T S1ST/" 2 Step . Open the Visual Studio 232 or 4# pplication Step 2. clic5 new Pro6ect

Upload: dianne-mae-galiza-rodriguez

Post on 06-Jan-2016

221 views

Category:

Documents


0 download

DESCRIPTION

BSIT3 Block1

TRANSCRIPT

Page 1: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 1/15

 This program automatically loads

database table to a listbox controland the selected value in listbox

will appear in DataGridView.

POST #!

Submitted

Dianne "ae

%S&T' %(

Submitted to!"s. )ristine *oy V. "artine$

&TP+,- DT%S/ "0G

Page 2: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 2/15

Step . Open the Visual Studio 232 or 4# pplication

Step 2. clic5 new Pro6ect

Page 3: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 3/15

Step '. Select Visual 4# and then select 7indows 8ormpplication a9ter that clic5 o5

Edit the name

Of your

project

 here

Page 4: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 4/15

Datagridview1

Step :.4reate a 9orm li5e this; drag the selected list%ox to thand also The Datagridview 9rom the Tool%ox

ListBox1

 1ou can edit the name o9 the lisbox and datagridview

by selecting-istbox or Datagridview and select properties

Page 5: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 5/15

Step <.Select the name o9 your pro6ect here; then sela9ter that clic

Select Visual 4# &tems then select 4lass and

0ame the class as =D%4onnect.cs> a9ter that clic5 ddbutton below.

Page 6: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 6/15

Step ?. this step is almost the to step < except the name o9 theclass;

Select the name o9 your pro6ect here; then select dd a9ter that clic54lass.

Select Visual 4# &tems then select 4lass and

0ame the class as =4lassStudents.cs> a9ter that clic5dd button below.

Step @. Select e9erence in solution /xplorer and then select ddre9erence

4lic5 browse then go to

4!AProgram 8iles Bx+?CA"yS-A4onne

?.@.:AssembliesAv:.<&9 v:.< didnEt wor5 choose v2.3 or v:

9ter that select the "ySFl.Data.dll

nd "ySFl.Data./ntity.dll

Page 7: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 7/15

Step +. Go to Des5top and Open the "yS- 7or5benchapplication i9 you dont have then try to install the

installer inside the 9older o9 =utomatic load database > Then use password! admin when the installation is near

to complete; a9ter that open the "yS- 7or5bench

application then clic5 or open the =-ocal instance> thentype the password! admin a9ter that; go to management Then select =Data &mport,estore> the 9ollow the

&nstruction below.

Selectthis

Click this

Page 8: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 8/15

 Then go to the 9older you downloadincluding this Power point and select the

=studentHstudents.sFl> Ile then o5 and4lic5 button =Start &mport>

Click this

Page 9: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 9/15

Step J. Keres the coding portion; go bac5 to the Visua232 pplication and go to D%4onnect.cs and insert th

Insertthiscode

Start codinghere

Page 10: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 10/15

Continue codinghere

Page 11: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 11/15

Continue codinghere

Page 12: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 12/15

Step J. Go to your 9orm or design double clic5the 9orm and insert this code.

Insert this

Start codinghere

Page 13: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 13/15

Continue codinghere

Page 14: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 14/15

Step 3. 8< to run the program and the output isloo5 li5e this.

Page 15: Post1 - Automatic load Database

7/17/2019 Post1 - Automatic load Database

http://slidepdf.com/reader/full/post1-automatic-load-database-568c68d3ebfe9 15/15

erence o9 the program!

Thank y

 I hope You learn a lo