properties of one components are a use of another

T

thread

Hi all
is there an option to put inside the properties of the control data as
a variable of another control
for example

control1 have backcolor=255

i would like to use the backcolor of control1
so i will do

(control2)
backcolor = control1.backcolor


now every time control1 will change it will automaticly change control2

any ideas?
 
S

Smartin

thread said:
Hi all
is there an option to put inside the properties of the control data as
a variable of another control
for example

control1 have backcolor=255

i would like to use the backcolor of control1
so i will do

(control2)
backcolor = control1.backcolor


now every time control1 will change it will automaticly change control2

any ideas?

AFAIK there is no event you can leverage to detect a BackColor change.
You will need to code both changes wherever one or the other occurs, or
just set both controls to have the same BackColor value initially.
 
T

thread

i think that the best thing is to have a pointer to the value that will
all the time be changing by one change,
do you have an idea maybe?

Smartin כתב:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top