Results 1 to 6 of 6

Thread: COM / Classes with graphical displays?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Hamilton, New Zealand
    Posts
    137

    Question

    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

  2. #2
    Guest
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Hamilton, New Zealand
    Posts
    137
    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

  4. #4
    Guest

    Question

    not entirely sure i understand.
    Select what from references?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Hamilton, New Zealand
    Posts
    137
    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

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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
  •  



Click Here to Expand Forum to Full Width