Solved

Perform action on Named Control

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now