J
Joe Williams
I am trying to run a function that will determine the back color property of
a control when I click on that control. I have a lot of controls and
therefore I would like to write one generic function that I can call from
each control's OnClick event to get the backcolor property.
However, In each control's OnClick event, the only way I have found to get
the backcolor property is to go me.txtControl.backcolor which requires me to
explicitly name each control. So instead of being able to call a generic
function I would have to change the control name for each control's OnClick
event.
Is there a way a control can refer to itself to get the backcolor property
without specifically naming the control (Similiar to the Me. property for
forms)?
Thanks
joe
a control when I click on that control. I have a lot of controls and
therefore I would like to write one generic function that I can call from
each control's OnClick event to get the backcolor property.
However, In each control's OnClick event, the only way I have found to get
the backcolor property is to go me.txtControl.backcolor which requires me to
explicitly name each control. So instead of being able to call a generic
function I would have to change the control name for each control's OnClick
event.
Is there a way a control can refer to itself to get the backcolor property
without specifically naming the control (Similiar to the Me. property for
forms)?
Thanks
joe