|
Learn Step-by-step how
to write the application - KJV_VCNet developed with Microsoft
Visual C++ .Net.
- Name - KJV_VCNet.
- Database
Software.
- Developed with
Microsoft Visual C++ .Net.
- Uses the Microsoft
Access database file - KJV2002.mdb.
The KJV2002 database file stores 4 books of
Bible data. - (every book has a title
and consists of several chapters and every
chapter consists of several verses) The
database consists of one table - BibleTable. The
table stores more then 31100 records and each record consists of
five fields - Book, Title,
Chapter, Verse and
TextData: - The Book field
stores the oders of the books - (4 books). - The
Title field stores the titles of the books. -
The Chapter field stores the orders of all
chapters. - The Verse field stores the orders
of all verses. - The Textdata field stores the
contents of all verses.
- Functions:
View , Search, Show and
Animation.
- Requirements:
Microsoft Visual Studio .Net.
- The CD-Rom -
Teach_VNet stores the analogue application in the
folder \\C_Col_VC++Net\KJV_VCNet.
If you want to
run it:
- Copy the
folder KJV_VCNet from the
CD-Rom - Teach_VNet onto C:
drive.
- Remove the
read-only attribute of all files in the
folder - C:\KJV_VCNet
- Run the
Microsoft Visual Studio .Net.
- From
File menu, choose Open
then choose Project
..., the Open Project
dialog box appears, select the KJV_VCNet.vcproj project file
(C:\KJV_VCNet\KJV_VCNet.vcproj)
and then click Open.
- From
Debug menu, choose and click
Start.
|
Project -
KJV_VCNet and
those items
- From View
menu, click Resource View
- From
View menu, click Solution Explorer
|
|
After
running,
you can observe the following Forms design
...:
The
design .. |
 |
The Functions ...
To
call the Dialog - IDD_BOOK.. (From
Info menu menu, click Book)
To
call the Dialog - IDD_ABOUTBOX. - (From
Info menu menu, click
About)
To
unload the current project. - (From
Info menu menu, click Exit
)
| |
The
design .. |
1st Page selected of Tab Control ...
|
 |
2nd Page selected of Tab Control ...
|
 | |
The Functions ...
To
display any records of KJV2002
database fileTo
move the current record position to the
first, last, next, or previous record. - (Click the
navigation buttons )
To
unload the current Dialog. - (Click the button
Ok)
To search By
word: - (1st Page of Tab Control
selected)
Type a word - (length > 1
characters) in the Edit control - IDC_EDIT2, the Button -
Display set enable.
Click the Button Display, two
types of information appear:
- A
list of information about all
KJV2002 database records include the word
you specified, will appears in the List Control
- IDC_LIST1 - (each list item stores the order of
the record corresponding and the values of Book
field, Title field, Chapter field and Verse
field in this record).
- The
number of the records found.
|
Select an item of the List
Control,
the record corresponding to the item selected displays
into the boxes -The data |
To search By
address: - (2nd Page of Tab Control
selected)
- The
Book Listbox control - IDC_LIST_BOOK stores the orders of all
books. Select an item:
- In the
Book Listbox , the
item selected appears with the Fore color.
- In the
Title Listbox , the title
of Book corresponding to the item selected
appears with the Fore color.
- The
Chapter Listbox stores
all chapters orders of this
book and the 1st order chapter
appears with the Fore color.
- The
Verse Listbox stores
all verses orders of the 1st
chapter and the 1st order
verse of this chapter appears with the Fore
color.
- Into the
boxes -The data, displays the 1st
record of this book.
|
- The
Title Listbox control - stores the titles of
thel
books - ( 4 books). Select an
item:
- In the
Book Listbox, the
order of the book corresponding
to the item selected appears with the Fore color.
- In
this
Listbox, the
item selected appears with the Fore color.
- The
Chapter Listbox stores
all chapters orders of this
book and the 1st chapter
order appears with the Fore color.
- The
Verse Listbox stores
all verses orders of the 1st
chapter and the 1st verse
order appears with the Fore color.
- Into the
boxes -The data, displays the 1st
record of this book.
|
- The
Chapter Listbox control - stores all chapters
orders corresponding to the order Book
of the Listbox Book has the Fore color. . Select an item:
- In
this Listbox, the
item selected appears with the Fore color.
- The
Verse Listbox stores
all verses orders corresponding
to the item selected and the 1st verse
order appears with the Fore color.
- Into the
boxes -The data, displays the
1st record of the book chapter.
|
- TheVerse Listbox control - stores all verses
orders of the chapter corresponding to the
items of Listboxes Chapter and Book had
the Fore color. Select an item:
- In
this Listbox,
the item selected appears with the Fore color.
- Into the
boxes -The data , displays the record
corresponding to the item selected.
| | | |
The
design .. |
 |
The Functions ...
To
display information about the KJV2002
database file.
To
call the Dialog - IDD_BIOGRAPHY. (Click the button
Created by)
To
unload the current Dialog. (Click the button
Ok)
| |
The
design .. |
 |
The Functions ...
Animation.
Biography data display
To
unload the current Dialog - (Click the button
Ok )
| |
|
|