"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: COpenForm
Class that open Forms via a string reference. Visual Basic does not allow you to open and show a form based on a string or a variable containing the name of the form. This class lets you create a collection of the forms in your application, and then refer to them via strings or variables.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the COpenForm class
|
|
AddForm
|
Method
|
Add a form reference to the collection (this form does not need to be loaded)
|
|
Class_Initialize
|
Initialize
|
Instantiates the module-level collection
|
|
Class_Terminate
|
Terminate
|
Cleans up the form reference collection
|
|
GetForm
|
Method
|
Returns a form reference to the passed form (this form does not need to be loaded)
|
|
ShowForm
|
Method
|
Shows the form specified in the passed string argument. This form must previously have been added to the collection with the AddForm method.
This function is designed to work like the VB .Show method, except that you can show a form by using a string or a variable rather than hard coding the name of the form. You can specify whether the form is to be shown modally, and optionally specify an owner form. In addition a reference to the form is returned, so that you can do whatever else it is you need to do to the form, such as change its properties.
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|