Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing properies as parameter
Message
 
To
18/08/2006 13:44:49
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01146810
Message ID:
01146873
Views:
26
Hi Richard,

I'm not sure what exactly your question is... Do you want to pass a set of ten textboxes to a method? That's possible with code like this:
private void button1_Click(object sender, EventArgs e)
{
  ProcessTextboxes(new TextBox[] {txtCity,txtName} );
}

public void ProcessTextboxes(TextBox[] textboxes)
{
  foreach (TextBox txt in textboxes)
  {
    txt.BackColor = Color.Azure;
  }
}
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform