Sunday, February 7, 2010

Visual Basic.Net How to clear contents from my textbox,or label?

In a VB.Net form.


For example when a client chooces what they want to buy, after that they should be able to clear the selection and start a fresh selection if they wish so.Visual Basic.Net How to clear contents from my textbox,or label?
Hi,





Put a button with 'Clear All' label in the form. On the button click function write the following code:


textBox1.Text=';';;


label1.Text=';';;


Regds,


AbsuneelVisual Basic.Net How to clear contents from my textbox,or label?
Have you tried


label.label1 = ';';


textbox.texbox1 = ';';
textbox1.text=';';


this should clear the content of any textbox you want





Label1.text=';';


this should clear the content of any label

No comments:

Post a Comment