-
I want to create a COM Object that contains the main functionality of my application and then have just the exe containing the presentation code.
However i will need the COM object to display some custom input boxes that i have created using forms?
Is this possible?
Any help would be appreciated
Regards
-
use an ActiveX control,
as far as addig existing controls to it, it will behave just like a form (more or less) and you can choose which of those control's properties to expose.
-
I Know i can use ActiveX controls, I'm more thinking along the lines of Word / Outlook type stuff.
You select it from the References tab and then you can do everything with it either hidden or visible?
Thats something more than an ActiveX control isn't it?
Regards
-
not entirely sure i understand.
Select what from references?
-
You know how you can go to the project menu > References and select say Microsoft Word 8.0 Object Model.
Then in your project you can have code like
Code:
Dim wrdObject as New Word
And use that to access all the properties / methods/ etc. of Word without displaying anything to the user.
BUT
Then you can set the visible property to true and whiz bang up pops word.
How would I do this?
Basically I want to expose the whole object model of my application to other applications.
My Applications code is mainly in 2 class modules and then the forms just call the functions in those classes.
The idea being that I can quickly and easily modify the behaviour of the form to suit my customers.
If I could expose the object model of my application I can then have support for plugins etc.
Regards
-
you can use class modules to do this, make your class module and add some forms to the activeX dll project, you can bring these forms up from code using
Code:
Dim frmInput As New Form1
Public Property Let Visible (Data As Boolean)
frmInput.Visible = Data
End Property
or whatever