how to empty textbox in a groupbox
C#
4
Posts
3
Posters
0
Views
1
Watching
-
hi i hava a groubox contain 5 textbox control and i want to empty the all textbox i'm having hard time to solve pls any idea..
And what have you tried? It's not that difficult.
I know the language. I've read a book. - _Madmatt
-
hi i hava a groubox contain 5 textbox control and i want to empty the all textbox i'm having hard time to solve pls any idea..
-
Try this
foreach (Control ctl in groupBox1.Controls)
{
TextBox txt = ctl as TextBox;
if (txt != null)
{
txt.Text = string.Empty;
}
}:)
Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim So Smile Please