Lakar Posted May 12, 2009 Report Posted May 12, 2009 (C#)Clear Items This is how you would clear, let's use as an example, a textbox. This is mainly used when you are closing a program, and want all data to be cleared in those text boxes. this.textBox1.Clear(); All you have to do to use this for other objects is change textbox to the item you want to clear. For example "this.picturebox1.Clear();". Enjoy -Lakar
Dark Slipstream Posted May 12, 2009 Report Posted May 12, 2009 You can also use: this.textBox1.Text = Nothing; 'or this.textBox1.Text = ""; and in VB.NET: TextBox1.Text.Clear() 'or TextBox1.Text = Nothing 'or TextBox1.Text = ""
Recommended Posts
Archived
This topic is now archived and is closed to further replies.