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
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • MySpace
  • StumbleUpon
  • Technorati
  • TwitThis
October 15, 2009 • Tags: , • Posted in: Programming & Design

3 Responses to “Visual Basic.Net How to clear contents from my textbox,or label?”

  1. ResourceGuy - October 15th, 2009

    Have you tried
    label.label1 = “”
    textbox.texbox1 = “”

  2. halen_shezar - October 17th, 2009

    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.

  3. abSuneel - October 19th, 2009

    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.