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
How do I Control Program Access on Windows Server 2008 R2 Terminal Server?
VB Data Entry Application without Microsoft Access
Wildcards in worksheet names/SUMPRODUCT range
Moving Exchange 2007 OAB's after migration to Exchange 2010
SBS 2003 Exchange Crash!
Can security be applied to a sharepoint view?
Remote Desktop between 2 Win XP Pro machines on a LAN. How much more simple could it be and how hard is it for me!
copy/paste capacity
Word Macro problem, dynamic image resize macro
Help with LDAP query