G
Guest
I have an application with 2 forms. Form1 is the main form and has 2 text
boxes on it. Form2 is a datagrid showing a list of workorders that are to be
manufactured.
The user can use the mouse to select the work order on form2 and data is
populated on form1 with the partid and work order. It is then supposed to
shift Focus to form1 and the text box containing the workorder BUT focus is
being kept on Form2.
What do I need to do to properly get the focus to change?
Heres the code used to change focus:
Form1.txtWorkOrder.Focus ()
boxes on it. Form2 is a datagrid showing a list of workorders that are to be
manufactured.
The user can use the mouse to select the work order on form2 and data is
populated on form1 with the partid and work order. It is then supposed to
shift Focus to form1 and the text box containing the workorder BUT focus is
being kept on Form2.
What do I need to do to properly get the focus to change?
Heres the code used to change focus:
Form1.txtWorkOrder.Focus ()