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

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

    The two methods are 100% equivalent.

    I’m not sure why Microsoft felt the need to include this extra Clear method but since it’s there, I recommend using it, as it clearly expresses its purpose.

提交回复
热议问题