|
-
Jun 2nd, 2000, 10:20 AM
#1
Thread Starter
Addicted Member
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
Regards
Matt Brown
Hamilton, NZ
VB6 C++ in Visual Studio 6sp4
VB.net Beta 1
-
Jun 2nd, 2000, 05:30 PM
#2
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.
-
Jun 2nd, 2000, 05:38 PM
#3
Thread Starter
Addicted Member
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
Regards
Matt Brown
Hamilton, NZ
VB6 C++ in Visual Studio 6sp4
VB.net Beta 1
-
Jun 2nd, 2000, 05:43 PM
#4
not entirely sure i understand.
Select what from references?
-
Jun 2nd, 2000, 05:48 PM
#5
Thread Starter
Addicted Member
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
Regards
Matt Brown
Hamilton, NZ
VB6 C++ in Visual Studio 6sp4
VB.net Beta 1
-
Jun 2nd, 2000, 06:47 PM
#6
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|