Results 1 to 4 of 4

Thread: Beginners Question...

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Talking Beginners Question...

    Sorry had to write that as no-one reads my threads

    How do you subclass a class module???
    I have an OCX, which is hidden at runtime, so I can in fact implement this as a class module...but, I need it to be subclassed? Any ideas???

  2. #2
    Swatty
    Guest
    Dim withevents myocx.

    Something in that line i think.
    Do a search on withevents

  3. #3

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Talking Almost there...

    No, no, no
    Subclassing...
    I subclass the usercontrol so I can handle windows messages on a one-to-one basis...for this I need the handle for the usercontrol, that is no problem.
    I want to implement the same features, from the usercontrol, in a class module, which doesn't have a handle, so how do you subclass it???

    Oooo, just remembered something...b

  4. #4
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234
    well y not set reference to the ocx.

    this will make the classes of the ocx available to u at runtime.

    i did a similar thing for the COMM control.
    ciao,
    Nihar

    VB 6 Enterprise SP5;
    SQL Server 2000

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