Home > Software > Develop an Standard EXE file, with an example

Develop ActiveX EXE file, with an example Standard EXE Interacting with ActiveX EXE.dll

ActiveX .EXE : A Beginner’s Guide

4. Develop a Standard EXE file, with an example

Now, we develop our Standard EXE application that uses the ActiveX component developed earlier.

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 another instance of Visual basic, select the “Standard EXE” and click “Open”.

Fig:ActiveX-6; Dialog Box showing the type of project to open.

Change the name property of form to frmTestActivex and caption to “Test form”.

Include the following controls on the form:

Object Property Setting
Command button Name
Caption
CmdShowSelVal
Show Selected Value in ActiveX Exe
Command button Name
Caption
cmdCallActivex
Show Form From ActiveX Exe
Option button Name
Caption
optNumbers
Choose Numbers in ActiveX Exe
Option button Name
Caption
OptAlphabets
Choose Alphabets in ActiveX Exe

Select References from Project menu by going to “Project -> References” as shown in the figure below:

Fig: ActiveX-7; References dialog box.

On selecting References Menu item a dialog box as shown below will be opened.

Fig:ActiveX-8; References Dialog Box

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.

Develop ActiveX EXE file, with an example Standard EXE Interacting with ActiveX EXE.dll

     Home                                                Copyright © 2003-2016 TutorialsWeb.com                                   Disclaimer                                           Sitemap