Results 1 to 6 of 6

Thread: How can different forms use the same instance of a DLL's class?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2001
    Posts
    30

    Talking How can different forms use the same instance of a DLL's class?

    Hi!

    I have a simple question.

    How do different forms in a Standard EXE project use the same reference to a DLL's class?

    How do I instantiate the object in one form,and use it in that form, as well as other forms in the Project?

    If I use:



    Dim DBMOD as DatabaseModule.DBCLASS

    Private sub Sub Form1_Load
    Set DBMOD = New DatabaseModule.DBCLASS

    End Sub


    How do I use the same object DBMOD in my other forms?? It should be instantiated in one form and then used again in that form as well as other forms(the same instance of it).


    Please help!!! thanks
    Last edited by saltrange; Mar 24th, 2002 at 09:48 AM.

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