using System.Windows.Form

  • Thread starter Thread starter Tammy Nejadian
  • Start date Start date
T

Tammy Nejadian

Hi, I am using Visual Studio C# windows. Every time I want to use some of the
methods in System.Windows.Form such as Clear(), it gives me error message and
saying "System.Windows.Forms.TextBox does not contain a definition for
'Clear'". Could someone help me with that. This happen for other methods that
are used in many places of the sources I am using but when I want to use them
it gives me error message.
Thanks
 
Well, TextBox.Clear() [actually, TextBoxBase.Clear()] has existed since
1.1 - so it should exist; do you have any sample lines that do this?

In particular - are you calling clear on an *instance* of a TextBox, or
against TextBox (the type) itself?

Marc
 
Back
Top