Sunday, February 7, 2010

How do I clear a label in VS2005?

Okay, I know how to clear a textbox:


textbox1.clear()





but that doesnt seem to work with labels


how do i do this with a label?How do I clear a label in VS2005?
Just set its text property to an empty string:





MyLabel.Text = ';';;





or





MyLabel.Text = String.Empty;
  • norton 2008
  • No comments:

    Post a Comment