![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I can't seem to access the methods of the ControlCollection class. I have a TabPage object: myTabPage; I get the collection of controls for myTabPage by doing: System.Windows.Forms.Control.ControlCollection collection = myTabPage.get_Controls(); I then want to determine how many controls are in the collection, so I do this: int nNumberOfControls = collection.Count(); but the compiler says Count() is not a member of ControlCollection. How do I get the count? And assuming I can get that, how do I then get each of the controls within the collection? - Roger |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |