?
Solved

A form in an ActiveX

Posted on 2004-04-01
3
Medium Priority
?
167 Views
Last Modified: 2010-05-02
Hi,

I've busted my but on this to no avail.

I want to put a form in an activeX and call it.

Should I create a dll or ocx? if a dll, how do I load it in my program?
0
Comment
Question by:StevenJames
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
dancebert earned 500 total points
ID: 10737761
Create a project of type ActiveX Dll (myProject).  Include a class (myClass) with a Public Sub (mySub).  Set the INstancing property of myClass to '5-multiuse'.  Add a form to the project.  In mySub put the code to show the form.  

Add another project (CallingProject) to the project group, this time of type Standard EXE.  Add a reference to myProject.  Somewhere in CallingProject, do something like this

dim o as myProject.myClass
set o = new myClass
o.MySub


0
 
LVL 3

Expert Comment

by:santosh26676
ID: 10738570
Yes I agree with dancebert. You could actually build the complete module (this is just for understanding purpose) and add as many form as you want. Just create the instance of the class (DLL) in the calling program and call the functions. Each function in DLL will perform some operations ( may be some calculations or loading a user interface).

0
 
LVL 4

Author Comment

by:StevenJames
ID: 10742072
Friggin beautiful man.

Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question