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

后端 未结 8 774
囚心锁ツ
囚心锁ツ 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:42

    If u want to Selected text clear then using to this code i will make by my self ;)

    If e.KeyCode = Keys.Delete Then
        TextBox1.SelectedText = ""
    End If
    

    thats it

    0 讨论(0)
  • 2021-01-11 14:48

    Just use:TextBox1.Clear() It will work fine.

    0 讨论(0)
提交回复
热议问题