|
|
|
|
|
The Microsoft
Visual J# .Net member of the Microsoft Visual Studio .Net |
|
Select Data VJSNet application ..., describe how to use Microsoft Visual J# .Net to read data from
the database file.
The Classes
used in this application OleDbConnection, OleDbDataAdapter,
OleDbCommand, DataSet, Button,
ComboBox,
Label, ListView, ListBox, Panel, PictureBox, Timer, TextBox.
- Name -
Select Data VJSNet.
- DataBase
Software.
- Developed with
Microsoft Visual J# .Net.
-
Functions ...
-
Show Data
stored in the Access file - XMView2002.mdb,
when you select the record corresponding.
|
- Requirements:
Microsoft Visual Studio .Net.
If
you want to run it:
- Remove the
read-only attribute of all files in the
folder - C:\Select
Data VJSNet
- Run the
Microsoft Visual Studio .Net.
- From
File menu, choose Open,
choose Project ..., the
Open Project dialog box appears,
select the project file Select
Data VJSNet.vjsproj -
(C:\Select
Data VJSNet\Select Data VJSNet..vjsproj)
and then click Open.
- From
Debug menu, choose and click
Start.
|
Project - Select
Data VCJNet
and
those items
|
Create Project -
Select Data VJSNet
Run Microsoft
Visual Studio .Net. On the File menu , click New,
and then click Project .... The New Project dialog box
appears.
- In the Project
Types pane, select the Visual J# Projects
folder.
- In the Templates
pane, select Windows Application icon (project type). A
message appears indicating the type of project you are going to
create - (A project for creating an application with a Windows
user interface).
- In the Name
box, type Select Data VJSNet
- In the
Location box, type C:\
- Click OK.
The
Windows Application create all necessary files and opens the
Microsoft Visual Basic .Net project - Select Data VJSNet.
|
|
Rename the
Form
- On the View
menu , click Solution Explorer
- In Solution
Explorer, expand the Select Data VJSNet project
node and select Form1.jsl
- In Properties
windows, Type the new File Name
|
Old |
New |
Filename : |
Form1.jsl |
SelectForm.jsl |
|
|
|
After running, you can observe the design
.. |
 |
|
|
|
The View design ..
List of controls added
from the
Toolbox/Windows Form: One
OleDbconnection control, one
ComboBox control, tree Button controls , nine Label
controls, one ListBox control, one
Listview control, tree Panel controls, one PictureBox control, five
TextBox
controls and one Timer
control.
This application use OleDbDataAdapter,
OleDbSelectCommand and DataSet software
control
The Functions ...
- The ComboBox stores the types of data
stored in the file XMView2002.mdb
- The ListBox stores data corresponding to the combobox item selected.
- The ListView stores detail data corresponding to
the listbox items selected
- The
TextBoxes stores data corresponding to
the listview item selected
-
Click the Button About, the
Form About.jsl display.
- Click the
Button Introductor, the Form
Introductoryform.jsl display.
-
Click the Button Exit, the current Application unload
|
The Codes ...
| | |
Click the Button About,
new design with
animation display.
|
|
|
List of controls
added from the
Toolbox/Windows Form:
Tree PictureBox control, seven
Label controls, one Button
control and one Timer
control.
Click the Button Done, the
current Form
unload | | |
Click the Button Introductor,
new design
display.
|
|
|
List of controls
added from the
Toolbox/Windows Form:
One PictureBox control
and one Button control.
Click the Button Done,
the current Form
unload | | |
|
|