Results 1 to 6 of 6

Thread: User Control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    User Control

    Hi,

    I'm creating user control based on standard VB control.
    I'm planning to add some properties and procedure/event

    How to retain/includes all properties, procedure/event and something like "hWnd" from base control to my user control?

    Thnks
    Last edited by barianto; Jul 28th, 2006 at 03:41 AM.

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: User Control


  3. #3
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: User Control

    You need to simply write the properties and events yourself and make them interact with the control you have within your control.

    For simple and commented user control samples, take a look into the user control link in my signature. UniLabel is the simplest and is thus probably the easiest to follow example.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: User Control

    nothing on your sample/link that show how to inheritage hWnd of base control?

  5. #5
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: User Control

    Afaik you're after this?
    VB Code:
    1. Public Property Get hWnd() As Long
    2.     hWnd = TheOtherControl.hWnd
    3. End Property

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: User Control

    Yes that is.

    Thank's merri

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