D
dhstein
I'm having a specific problem that is probably due to my confusion about a
general problem.
Specifically, I'm opening form B from an event in Form A. The last things I
want to do in the event are set the focus to the first field in form B and
make the current control in form A: Visible = false. I thought I could do it
in that order - that by setting the focus to the new control I could set the
current control to Visible = False but that doesn't work saying that you
can't hide a control that has the focus. So that's confusion number 1.
Confusion number 2 is I tried instead to set the focus to another control in
form A - so that I could set Visible = False on the control I'm trying to
hide. But I seem to have syntax problems because that's giving me errors
that it can't find that control - although it is definitely there.
So what is the syntax to specify a specific control on a specific form?
Thanks if you can help me get less confused here.
general problem.
Specifically, I'm opening form B from an event in Form A. The last things I
want to do in the event are set the focus to the first field in form B and
make the current control in form A: Visible = false. I thought I could do it
in that order - that by setting the focus to the new control I could set the
current control to Visible = False but that doesn't work saying that you
can't hide a control that has the focus. So that's confusion number 1.
Confusion number 2 is I tried instead to set the focus to another control in
form A - so that I could set Visible = False on the control I'm trying to
hide. But I seem to have syntax problems because that's giving me errors
that it can't find that control - although it is definitely there.
So what is the syntax to specify a specific control on a specific form?
Thanks if you can help me get less confused here.