Solved

Perform action on Named Control

Posted on 2007-12-06
3
251 Views
Last Modified: 2012-05-05
It occurred to me that in Access 2000 you can essentially modify parts of a program via code, such as changing the querydef object on a query to alter its actions. Is there a way in VB.NET 1.1 that you can create a routine that would act on a variable name ?

Something like this:

var = "x_AR_GR1_PS07.BackColor = System.Drawing.Color.Yellow"

execute ? var
0
Comment
Question by:shelbyinfotech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Accepted Solution

by:
stephenbarrow earned 500 total points
ID: 20425635
Instead of
var = "x_AR_GR1_PS07.BackColor = System.Drawing.Color.Yellow"
execute ? var

you could use something like
var = System.Drawing.Color.Yellow
x_AR_GR1_PS07.BackColor = var

any reason you can't use this?
0
 
LVL 1

Expert Comment

by:Vee_Mod
ID: 20620286
Force accepted.
Vee_Mod
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question