Page 26 - Open Soource Technologies 304.indd
P. 26
Event Driven Programming
Select the ActiveX Exe made in the above project and click on OK. In case you don’t see the
ActiveX component that you had just made, use “Browse” button locate and select the component.
Refer to appendix-D for code to be included in Form.
5.0 Interacting with ActiveX exe from Standard exe and vice versa.
To demonstrate how the Standard EXE interacts with the ActiveX EXE, run the test project.
Assuming that the code is entered properly, a form as shown below is displayed:
Figure 2.9: ActiveX-9; Test Form.
Select either of the options on the form and click on “show form from ActiveX Exe” Button.
Figure 2.10: ActiveX-10; Test Form Selection.
On selecting and clicking the button opens a form in AcxtivexEx Component as shown in
Figure 2.10.
In this case, Alphabets Drop-Down box is disabled as “Choose Numbers in ActiveX Exe” has been
selected.
20 LOVELY PROFESSIONAL UNIVERSITY