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

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

提交回复
热议问题