Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using variables to point to other variable
Message
From
05/11/2012 10:01:02
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01556216
Message ID:
01556395
Views:
62
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform