I am trying to allow a user to enter a value into a textbox on a modeless (non-modal) form. Because of other background events occurring, the form must be non-modal. The form displays correctly, and I have loaded labels with no problem, but I cannot get focus on the textbox long enough to enter a value. Processing control returns to the calling form or process. Am I trying to do something that a non-modal form cannot handle?
example:
' frmManualData contains a textbox in which the user needs to ''enter a value.
DoEvents 'Handle any pending events prior to form load.
frmManualData.Show vbModeless, frmCallingForm
DoEvents
'Control returns to calling form without giving the user the
'opportunity to enter a value into the textbox. The frmManualData 'for is still visible, but no focus.
example:
' frmManualData contains a textbox in which the user needs to ''enter a value.
DoEvents 'Handle any pending events prior to form load.
frmManualData.Show vbModeless, frmCallingForm
DoEvents
'Control returns to calling form without giving the user the
'opportunity to enter a value into the textbox. The frmManualData 'for is still visible, but no focus.