Results 1 to 7 of 7

Thread: [RESOLVED] ActiveX DLL and forms

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Location
    Huddersfield
    Posts
    4

    Resolved [RESOLVED] ActiveX DLL and forms

    How can I refer to properties and methods of the class I'm building from within the forms that I want to include in the DLL?.

    e.g:

    CLASS.CLS

    VB Code:
    1. private localvalue
    2.  
    3. public property get value()
    4.     value = localvalue
    5. end property
    6.  
    7. public sub increasevalue()
    8.     localvalue = localvalue+1
    9. end sub


    FORM.FRM
    VB Code:
    1. sub command1_click()
    2.     if value() > 100 then
    3.         text1.text = value()  ????
    4.     end if
    5. end sub
    I know that in this example I could refer to form.Text1 from the class, but my real life problem can't be solved that way.

    Cheers,

    Simon
    Last edited by WelcomeSinners; Feb 24th, 2005 at 11:43 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