hi all
I need help to get all information about all controls in my form like their bgcolor ,location , forecolor etc
thx for future help
Printable View
hi all
I need help to get all information about all controls in my form like their bgcolor ,location , forecolor etc
thx for future help
sry I found it
I'd suggest that you check out my submission in the VB.NET CodeBank forum that walks the control tree in a form without explicit recursion. You could also use explicit recursion if you want it to be a bit more efficient, although it won't follow the tab order then, e.g.You would call it like this:VB Code:
Private Sub DisplayControlNames(ByVal controls As ControlCollection) For Each cntrl In Controls MessageBox.Show(cntrl.Name) 'Here's the recursive step to access nested controls. Me.DisplayControlNames(cntrl.Controls) Next cntrl End SubVB Code:
Me.DisplayControlNames(Me.Controls)
that work too thx man
Get the solution then resolved the thread by clicking the thread tool menu :wave:Quote:
Originally Posted by demon.KILER