Results 1 to 1 of 1

Thread: [RESOLVED] Subclassing UserControl

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    95

    Resolved [RESOLVED] Subclassing UserControl

    Hello folks!

    I have a problem and hope you can help me: I like to create an ocx which includes several controls. These controls should be subclassed. I like to use Paul Catons thunks for this, since they are very IDE safe. Because I don't want to copy several times the same code the each control, therefore I don't want to use the selfsub example, but the cSubclass class together with the iSubclass interface for my purpose.

    But in this example the subclassing is started with following code:
    Code:
    oSub.Subclass Me.hwnd, Me
    This does not work on the user control - I tried it with following code:
    Code:
    oSub.Subclass UserControl.hwnd, UserControl.Extender
    Can somebody help me in here? Thanks!


    EDIT: I was silly... I don't have to use UserControl.Extender!
    Code:
    oSub.Subclass UserControl.hwnd, Me
    Last edited by NeedHelp!; Jan 28th, 2011 at 03:01 PM.

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