mike mcintyre's

.N e t J o u r n a l

vbCity Blogs moved to:
http://cs.vbcity.com/blogs
  Home :: Syndication  :: Login

OctNovember 2009Dec
SMTWTFS
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Archives

Topics

Source Code

Example:

  ' Create a LINQ query.

        Dim buttonQuery = From control In Me.Controls Where TypeOf (control) Is Button

        ' Create a list of object.

        Dim buttonList = buttonQuery.ToList

        ' Iterate through the objects in buttonList.

        For Each btn As Button In buttonList

            ' Show each button's text property.

            MessageBox.Show(btn.Text)

        Next

posted on Sunday, October 19, 2008 1:50 PM