Hi,
Thanks in advance for ur help.
How do I Extend ActiveX control in a Form and use its Porperties and methods.
If I use
Dim a as UserControl
a.MethodName
It is giving an error
Object Variable or With Block Variable not set.
How to overcome this?
Printable View
Hi,
Thanks in advance for ur help.
How do I Extend ActiveX control in a Form and use its Porperties and methods.
If I use
Dim a as UserControl
a.MethodName
It is giving an error
Object Variable or With Block Variable not set.
How to overcome this?
Try with "NEW"
VB Code:
Private MyObj as UserControl Sub BlaBla() Set MyObj = New UserControl MyObj.Say "moooo" End Sub
hope this helps :)
Jim
Hi,
Even that doesn't work, and it says
Invalid use of new keyword
Thanks