Re: Clear all TextBox on a Form
- From: RP <rpk.general@xxxxxxxxx>
- Date: Tue, 14 Aug 2007 12:46:36 -0700
Oh, I want that itself. Can you please illustrate on how to use
ControlCollection?
On Aug 15, 12:38 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
No, there isn't. You will have to cycle through all the textboxes on
the form, and then clear the text out yourself. It should be easy enough to
do, given a ControlsCollection instance, you can use the "as" operator to
determine if the control is a TextBox or not (or, TextBoxBase). If it is,
then you can set the Text property to an empty string.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Clear all TextBox on a Form
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Clear all TextBox on a Form
- References:
- Clear all TextBox on a Form
- From: RP
- Re: Clear all TextBox on a Form
- From: Nicholas Paldino [.NET/C# MVP]
- Clear all TextBox on a Form
- Prev by Date: Re: Integrating VB 2005 module.
- Next by Date: Re: Orcas Release date?
- Previous by thread: Re: Clear all TextBox on a Form
- Next by thread: Re: Clear all TextBox on a Form
- Index(es):