Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange problem - no Clear() method for the textbox
Message
From
24/04/2009 03:24:39
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01396168
Message ID:
01396202
Views:
67
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I've added a few textboxes to my form and I wanted to have a button to clear them. So, I googled and found http://social.msdn.microsoft.com/forums/en-US/winforms/thread/7bea2e67-312e-4135-bb83-261c5d594d2c?prof=required
>
>However, for some unknown reason I don't seem to find Clear() method. Why would it be?
>
>Thanks in advance.

Where didn't you find it (if that makes sense)?
I assume you are using Winforms?

System.Windows.Forms.Textbox has a Clear() method.
(as does System.Windows.Controls.Textbox)
System.Web.UI.Controls.Textbox does not......

UPDATE:
Ha, I see from the MM thread that you're using the Compact Framework. Textbox there doesn't support the Clear() method.
If you're using MS help you can filter on Framework when viewing class members - if you're working with CF then it's a good idea to uncheck the normal .NET framework so only CF members are shown.......

Best,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform