Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using variables to point to other variable
Message
 
À
04/11/2012 04:37:07
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01556216
Message ID:
01556395
Vues:
61
Hello :
Is there any way to send the control's name as a parameter variable in this code line?

some as this :
VarNameControl_SelectByUser="TextBox3"

var vv =  Controls.Cast<Control>().Single(x => x.Name ==VarNameControlSelectByUser)
vv.BackColor = Color.Azure
VarNameControlSelectByUser is a string variable contained the name of control.
(The code above is only for question purpose and do not run fine.)
- On the Road
In circle of Life
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform