G
Guest
I have a PopUp form that is opened on the OnEnter event of TextBox01 on the
MainForm. What I have discovered is that when the MainForm is initially
opened and I set the focus to TextBox01 which in turn opens PopUp form then
the focus is automatically set back to TextBox01 on MainForm. But ... if
MainForm is already open and a different control has the focus and then I
click in TextBox01, the PopUp opens but the Focus does not return to
TextBox01. Why does the focus return to TextBox01 on the open of MainForm
but not work the same if MainForm is already open and I click TextBox01 from
another control? Note: I do not want to leave the PopUp Form Open all the
time.
Thank you,
Steven
PS: To Dirk Goldgar. Thank you for your help on this last week. Your
suggestion worked part of the way but I could not get the focus back to
TextBox01.
MainForm. What I have discovered is that when the MainForm is initially
opened and I set the focus to TextBox01 which in turn opens PopUp form then
the focus is automatically set back to TextBox01 on MainForm. But ... if
MainForm is already open and a different control has the focus and then I
click in TextBox01, the PopUp opens but the Focus does not return to
TextBox01. Why does the focus return to TextBox01 on the open of MainForm
but not work the same if MainForm is already open and I click TextBox01 from
another control? Note: I do not want to leave the PopUp Form Open all the
time.
Thank you,
Steven
PS: To Dirk Goldgar. Thank you for your help on this last week. Your
suggestion worked part of the way but I could not get the focus back to
TextBox01.