T
Terry
Hi,
I have a couple of labels on a form and their visible property is bound
to boolean properties on a custom object. When I first load the form, all
works as it should. This form is 'tied' together with a search form, and the
user can go back and forth. When the user hits ok, the form is hidden and
the search form is shown and visa-versa. The problem is that when the form
is hidden when the labels visible property is False, and then shown again
with an object that should cause one or more of them to be visible, they are
not! It seems that the framework decides at 'show' time that since the label
is not visible, it no longer has to 'obey' the binding rules for it. This
seems like a bug to me. Of course I can get around the problem by setting
both labels visible property to true in the forms activated event, right
before I bind the newly selected object to the bindidng source. But again,
why are the binding rules changing at show time, they should of been 'fixed'
at load time!
I have a couple of labels on a form and their visible property is bound
to boolean properties on a custom object. When I first load the form, all
works as it should. This form is 'tied' together with a search form, and the
user can go back and forth. When the user hits ok, the form is hidden and
the search form is shown and visa-versa. The problem is that when the form
is hidden when the labels visible property is False, and then shown again
with an object that should cause one or more of them to be visible, they are
not! It seems that the framework decides at 'show' time that since the label
is not visible, it no longer has to 'obey' the binding rules for it. This
seems like a bug to me. Of course I can get around the problem by setting
both labels visible property to true in the forms activated event, right
before I bind the newly selected object to the bindidng source. But again,
why are the binding rules changing at show time, they should of been 'fixed'
at load time!