properties of one components are a use of another

  • Thread starter Thread starter thread
  • Start date Start date
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?
 
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.
 
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 כתב:
 
Back
Top