Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing properies as parameter
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01146810
Message ID:
01146873
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform