I have a form with a tabControl with 6 tabPages. There are
textBoxes on all the tabPages that are bound to a dataset.
The user can click a modify button, edit whatever
textBoxes they want and then click an OK button. The OK
button handler loops over all the textBoxes on all the
tabPages to validate their contents.
The problem is that the textBoxes on any tabPage which has
not been viewed appear empty to the code. It appears that
VB does not fill in bound textBoxes until the tabPage is
viewed (the tab clicked on by the user). Hence my
validation code thinks these textBoxes .text properties
are null and complains. I have kludged around this by
having the validation code select each tabPage in turn.
This works, but the user sees all the various tabPages
rapidly exposed after they hit the OK button.
Is there a better solution?
Thanks