Solved

Perform action on Named Control

Posted on 2007-12-06
3
245 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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