Thursday, 18 October 2012

Clear All Textbox in a form in vb.net


 Dim c As TextBox
        For Each tx As Control In Me.mncontainer.ContentTemplateContainer.Controls
            If tx.GetType.Equals(GetType(TextBox)) Then
                c = tx
                c.Text = ""
            End If
        Next

No comments:

Post a Comment