执行此代码后:
Dim arr = From ctl In ContainerCtl.Controls.Cast(Of Control)()
Select ctl
Where (ctl.Enabled = True) AndAlso _
(Not TypeOf ctl Is Label) AndAlso _
(Not TypeOf ctl Is Panel) AndAlso _
(Not TypeOf ctl Is GroupBox) AndAlso _
(Not TypeOf ctl Is C1.Win.C1FlexGrid.C1FlexGrid AndAlso bSkipGrid)
Order By ctl.TabIndex
如何访问第一个元素?我需要将其作为 Control 对象访问。
谢谢!
更新:使用 First() 或 FirstOrDefault() 永远不会起作用: