. Home Feedback Contents Search

Db Browser 

Db Browser Create
Db Browser Add Main Menu
Db Browser Connect String Class
Db Browser Connection String Dialog
Db Browser Show Connection Strings Dlg
Db Browser MDI Child Db
Db Browser Add MDI Child Menu
Db Browser Open Server
Db Browser View Db Detail

Back Up

As an example program, let’s make a little thing that will browse for a database, list the tables in the selected database, list the columns and data for a selected table. The program itself is an MDI application. The user specifies a connection string that will connect the application to a database server. The user is then presented with a hierarchical list of databases, tables in databases and columns in tables. As the user selects an item from this hierarchical list, details for the selected item are displayed in a grid control.

Create the application - Steps to create the skeleton of the database browser application.

Add Main Menu - Add a menu to the application.

Add Connection String Class - create a class that will wrap the connection string values.

Create Connection String Dialog - Create a dialog box to collect the connection strings from the user.

Display Connection String Dialog - Hook up the Connection String Dialog to a menu item in the main window. After the Connection Strings have been collected, open an MDI child database browser form.

Create MDI Child - Create the MDI Child window that is responsible for handling the database connection.

Add MDI Child Menu - Add the menu items that are specific to the MDI Child form's needs.

Implement Database Server Connection - Implement the code necessary to handle the connection to the database server.

Implement Database Data Display - Implementation of the code that extracts and displays the selected item's detailed data.

Back Up

Hit Counter