私は3つのタブのtabcontrolを持っており、それぞれのタブにはテキストボックスが含まれています。各タブのすべてのテキストボックスとボタンを1回クリックするだけです(ボタンイベントまたはすべてのテキストボックスを消去する別の方法)vb.netのtabcointrolsでテキストボックスをクリアする
私はすでに多くのようなものになりますのみ
Private Sub ClearFields(ByVal cntr As Control)
For Each page As TabPage In TabControl1.TabPages
For Each ctl As Control In page.Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
If TypeOf ctl Is ComboBox Then
ctl.Text = ""
End If
If ctl.HasChildren Then
For Each thing As Control In ctl.Controls
If TypeOf thing Is TextBox Then
thing.Text = ""
End If
Next
End If
Next
Next
End Sub
上
クリアすべてのコントロールは、ちょうど約事のこのタイプ – Plutonix