VB.Net .Clear() or txtbox.Text = “” textbox clear methods

后端 未结 8 848
囚心锁ツ
囚心锁ツ 2021-01-11 13:49

Not far into programming and just joined this forum of mighty company so this is a silly question, but what is the best way to clear textboxes in VB.Net and what is the diff

8条回答
  •  情深已故
    2021-01-11 14:36

    Specifically if you want to clear your text box in VB.NET or VB 6.0, write this code:

    TextBox1.Items.Clear()

    If you are using VBA, then the use this code :

    TextBox1.Text = "" or TextBox1.Clear()

提交回复
热议问题