I have a series of checkboxes on a page within a pageframe that, when clicked ON, should enable and set the focus to a text box to enter text for the option defined by the checkbox. Each checkbox is also bound to a field in a table and so are the text boxes.
I use the Click method of the checkbox to enable and set the focus to the text box when the checkbox value is true. I also want the text boxes enabled or disabled based on the checkbox value when I change records in the table so I call the checkbox Click method from the form's Refresh method.
Doing this causes the focus to be set to the text box. I figure if I can tell that the active control is not the checkbox, then I'll cause the Click event of the checkbox to not set the focus to the text box. However, I haven't managed to get the ActiveControl property to return the correct object to determine what the active control is. I think this is because either the form or the nav toolbar may be the active container but I don't know how to how to determine which one is active.
Maybe my whole approach is wrong. Any help is appreciated.
Carl
Carl Chambers
Cardol Data Systems