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
Printable View
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
http://www.vbforums.com/showthread.php?t=412755
http://msdn.microsoft.com/library/de...vexcontrol.asp
u can get more detail about user control from above link
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.
nothing on your sample/link that show how to inheritage hWnd of base control?
Afaik you're after this?
VB Code:
Public Property Get hWnd() As Long hWnd = TheOtherControl.hWnd End Property
Yes that is.
Thank's merri