Microsoft
Software
Hardware
Network
Question : VB.NET Lambda/LINQ batch function
I have a Windows Forms Panel control called pnlContainer.
It has child controls, several of which are of type AccountVisualControl.
The AccountVisualControl class has a method Deselect().
If my understanding of Lambda expressions is correct, is there a way for me to call the Deselect() method of every control of type AccountVisualControl?
I envision something employing this sort of syntax:
pnlContainer.Controls.OfTy
pe(of AccountVisualControl)
In addition, I need the syntax in VB.NET, not C#, unfortunately.
Answer : VB.NET Lambda/LINQ batch function
Why not just?
For Each avc As AccountVisualControl In pnlContainer.Controls.OfTy
pe(Of AccountVisualControl)()
avc.Deselect()
Next
Random Solutions
Keeping Look Ups in a Make Tabel Query
SSIS DYNamic excel connection string in runtime
Difference between ADP, MDB & SQL
Way to change a SQL 2005 key
SSO in ISA Server
Exchange 2007 OWA
How to use DOS with Virtual PC
MSAccess - Remove all forms & tables using VB?
Accessing Notes Items in Domino with VB.NET
how to exclude one of the table during imp/exp?