R
RL Stevenson
Often I want to change the Enable or Visibility on a control when some other
control on the form changes. Or maybe I need to make a change to the
DataSource on a combo box when the user makes a selection elsewhere on the
form.
In Visual FoxPro, you would call Refresh on the form causing Refresh to be
called on all the controls on the form, causing the Refresh event code to be
called and allowing the controls to update themselves to the new state. Or
sometime you might just call Refresh on a single control if two controls are
tightly coupled.
Basically, I would like to have a method to call on a form or control that
will execute some event code that I have provided.
I can't find anything in Windows Forms so far that even reminds me of this
capability, yet I expect that this kind of functionality is widely used.
Can someone help me find the right tree in this forest?
control on the form changes. Or maybe I need to make a change to the
DataSource on a combo box when the user makes a selection elsewhere on the
form.
In Visual FoxPro, you would call Refresh on the form causing Refresh to be
called on all the controls on the form, causing the Refresh event code to be
called and allowing the controls to update themselves to the new state. Or
sometime you might just call Refresh on a single control if two controls are
tightly coupled.
Basically, I would like to have a method to call on a form or control that
will execute some event code that I have provided.
I can't find anything in Windows Forms so far that even reminds me of this
capability, yet I expect that this kind of functionality is widely used.
Can someone help me find the right tree in this forest?