Reputation: 13
I am new to Vb6 and working on an application.I have created a standard exe project containing just one form(say Form1) and an ActiveX DLL, both separate projects. I just want to know is it possible to access Form1 and its controls from the DLL? If yes, how can I achieve this?
Upvotes: 1
Views: 1249
Reputation: 1683
Yes. It is totally possible. We have code that does this all the time.
In your ActiveX DLL you just need a method that the application can call to show the form.
public sub showTheForm()
MyForm.Show vbModal
end sub
That will work perfectly well. The problem is when you want your form to be a child of an MDI form the main application is running. For this we use a components called MDIExtender from DevComponents.
Upvotes: 1