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
Format Dynamically created datagrid's column to currency
SQL Server Stored Procedure - Must declare the scalar variable
Broken Exchange Server 2010 management tools
Looking for a PDF application that allows me to create forms
Access reporting
HTTPS forms loading slow or not loading at all. Using IE6, IE7 and firefox.
prevent taskkill and netstop command
Password in VB.NET
Deleted row information cannot be accessed through the row
Powershell Script to Copy Folder Structure from one Server to another.