tabish8612
Member
- Joined
- Jan 15, 2009
- Messages
- 6
- Programming Experience
- Beginner
any one can have a clue to disable many textbox in one line coding
Array.ForEach(this.Controls.OfType<TextBox>().ToArray(),
delegate(TextBox field) { field.Enabled = false; });
Array.ForEach(this.Controls.OfType<TextBox>().ToArray(),
(TextBox field) => field.Enabled = false );
Array.ForEach(Me.Controls.OfType(Of TextBox).ToArray(), _
Sub(field As TextBox) (field.Enabled = False))
For Each field In Me.Controls.OfType(Of TextBox)()
field.Enabled = False
Next
Array.ForEach(Me.Controls.OfType(Of TextBox).ToArray(), _
AddressOf DisableTextBox)
Private Sub DisableTextBox(ByVal field As TextBox)
field.Enabled = False
End Sub