How would i pass the TabControl to a function?
I have a function:
[code=vb]
Public Function processCount(ct rlName As TabControl) As Integer
....
[/code]
Call :
I cant pass it as a String - i get type mismatch error obviously.
I have also tried:
But then i get compile error within the function :
"Method or data member not found"
when i do this
Help please?
I have a function:
[code=vb]
Public Function processCount(ct rlName As TabControl) As Integer
....
[/code]
Call :
Code:
processCount( 'I want to pass the Tab Control Name i am interested in')
I have also tried:
Code:
processCount( TabCt1.Name = [Page 2])
"Method or data member not found"
when i do this
Code:
For Each Ctrl In pageName.Controls
Help please?
Comment