When clearing input from users. What is the difference between clearing it in these two forms
txtExample.Clear()
versus
txtExample.Text = String.Empty
The only difference that I could find was that the labels aren’t cleared with .Clear() (or at least from what I inferred from my book that’s not possible)
Is there a noticable speed difference or should I just clear both labels and txt boxes with String.Empty
There really is no difference, so it is a matter of preference to which method you want to use. I personally use
txtExample.Text = String.Emptyfor consistency.