|
-
Jul 28th, 2006, 03:30 AM
#1
Thread Starter
Addicted Member
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.
-
Jul 28th, 2006, 03:32 AM
#2
-
Jul 28th, 2006, 03:41 AM
#3
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.
-
Jul 28th, 2006, 04:59 AM
#4
Thread Starter
Addicted Member
Re: User Control
nothing on your sample/link that show how to inheritage hWnd of base control?
-
Jul 28th, 2006, 05:40 AM
#5
Re: User Control
Afaik you're after this?
VB Code:
Public Property Get hWnd() As Long
hWnd = TheOtherControl.hWnd
End Property
-
Jul 28th, 2006, 05:44 AM
#6
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|