C# check control type code example
Example: C# check control type
foreach(Control c in List)
{
if (c is TextBox)
{
((TextBox)c).Text = "This should be the new text";
}
}
foreach(Control c in List)
{
if (c is TextBox)
{
((TextBox)c).Text = "This should be the new text";
}
}