Visual Basic.Net How to clear contents from my textbox,or label?
Shanaya asked:
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.
Thanks all for your answers.
Is it possible to do the same with comboboxes? eg a ComboBox1 has numbers 1,2 & 3 for a client to chose from,so they chose 1,how do i clear that in the comboBox?
Ruben
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.
Thanks all for your answers.
Is it possible to do the same with comboboxes? eg a ComboBox1 has numbers 1,2 & 3 for a client to chose from,so they chose 1,how do i clear that in the comboBox?
Ruben













3 Responses to “Visual Basic.Net How to clear contents from my textbox,or label?”
Have you tried
label.label1 = “”
textbox.texbox1 = “”
The content of any label.
The content of any textbox you want label1text this should clear the content of any textbox you want label1text this should clear the content of any label.
The button click function write the button with clear all label in the button click function write the form on the following code textbox1text label1text regds absuneel.
The following code textbox1text label1text regds absuneel.
The form on the form on the form on the form on the form on the button click function write the form.