the clear() fuction isnt working to clear the textbox. any one help!!

thanks in advance.

Are you just trying to set the value to blank? If so just do textBox.Text = string.Empty;

Do you have a KeyPress or KeyDown event linked to the textbox?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.