G
Guest
Hello all....
I'm developing a web app VB 2005. Is it possible to declare/pass a user
control as a parameter in a function?
For example, I create a user control called ucMyControl, and on the page
that uses it I can refer to the instance name ucMyControl1.
However now I want to pass that control to another class. I'd like to create
a method in that class that can receive the user control:
Public Class xyz
....
Public Shared Sub AMethod (byref ucMyControl1 as ucMyControl)
....
End Class
But the 'as ucMyControl' part is generating compile errors. What is the
method signature syntax if this is doable?
Thanks - Hedge
I'm developing a web app VB 2005. Is it possible to declare/pass a user
control as a parameter in a function?
For example, I create a user control called ucMyControl, and on the page
that uses it I can refer to the instance name ucMyControl1.
However now I want to pass that control to another class. I'd like to create
a method in that class that can receive the user control:
Public Class xyz
....
Public Shared Sub AMethod (byref ucMyControl1 as ucMyControl)
....
End Class
But the 'as ucMyControl' part is generating compile errors. What is the
method signature syntax if this is doable?
Thanks - Hedge