Oops, I think this way works
better:
Control ctl = new Control;
foreach (ctl in this.Controls)
if (ctl is TextBox)
(TextBox)ctl.Text =
"Hello";
by
Kohl
Vitória - ES
- Brazil
De: News byKohl [mailto:[EMAIL PROTECTED]
Enviada em: sábado, 23 de julho de 2005 05:10
Para: '[email protected]'
Assunto: RES: [Microsofts_C_Sharp] Vb to C#
Control ctl = new Control;
foreach (ctl in this.Controls)
if ((ctl as TextBox) !=
null)
ctl.Text = "Hello";
by
Kohl
Vitória - ES
- Brazil
De: [email protected] [mailto:[EMAIL PROTECTED] Em nome de Nadeem
Enviada em: sábado, 23 de julho de 2005 03:49
Para: [email protected]
Assunto: [Microsofts_C_Sharp] Vb to C#
Dim Ctl as Control
For each Ctl in Me.Controls
if typeof Ctl is Textbox then
Ctl.text = "Hello"
end if
Next
YAHOO! GROUPS LINKS
- Visit your group "Microsofts_C_Sharp" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
