Link to home
Start Free TrialLog in
Avatar of dimensionav
dimensionavFlag for Mexico

asked on

How to use forms in a DLL?

I am developing an ActiveX DLL and I need to use forms in some functions, I don´t know if forms are used as same as a simple .exe application.

The idea is to open a form in which will be some buttons with their events handled.

Regards
Avatar of mcs0506
mcs0506
Flag of Pakistan image

hi,
Can you please tell me which version vb you are currently using?
If you are using VB.Net then you can create form in library file and then add reference this file DLL file into you your project (where you want to open this form) . Add import statement by using same namespace that used in DLL project. Now the form class is available in your code your can create its object and then call its Show() method to show the form.

Dani
Avatar of dimensionav

ASKER

HI

I am using VB6 SP6
Hi,
If you are using VB6 then you can get form by its name after adding its reference. is it?
ASKER CERTIFIED SOLUTION
Avatar of HooKooDooKu
HooKooDooKu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial