Page 20 - Open Soource Technologies 304.indd
P. 20
Event Driven Programming
EXE already chosen birds). The selected bird is passed back to the Standard EXE. The example
makes it clear as you read on.
1. Open Visual Basic 6.0—it should be on your start menu if you have just installed it
Programs -> Microsoft Visual Basic 6.0 -> Microsoft Visual Basic 6.0 Open an instance of
Visual Basic Choose ActiveX EXE and select Open.
Go to the properties of class and change its name property to clsActivexEx. Add a new Form by
using Add Form menu item in the project menu. Change the name property of form to
frmActivexEx and the caption to “Form From ActiveX Exe”.
Include the following controls on the form:
Object Property Setting
Command button Name cmd SelAnd Close
Caption Select and close
Combo Box Name cboNumbers
Combo Box Name cboAlphabets
Label Caption Numbers:
Label Caption Alphabets:
Open the project properties dialog box by going to Project -> ActivexEx Properties.
Figure 2.2: ActiveX-2 Project Properties Dialog Box.
14 LOVELY PROFESSIONAL UNIVERSITY