hunterspot
Programmer
Hello Everyone
I have a wierd problem. I am calling a modal form from a modal form. alwaysontop property is False for both forms. When the second form is intiated, it has focus. When I click on a button to activate a few controls (text boxes and checkboxes) the focus is coing back to the first form. Even thoud the second form is visible, it loses focus and not control is clickable. The only way to get out is to click CTRL+ALT+DEL.
When i debugged, I found this to be happening.
The code calling form2 in the form 1 is like this:
code line1.....
Code line2.....
DO Form frmForm2 with param1,parm2,parm3 to lcReturn
Code line4...
Code line 5 ...
When the frmForm2 is visible
_screen.activeform.name is frmForm2
thisform.name is frmForm2
When the 'Modify' button on frmForm2 is clicked and the code is executed
_screen.activeform.name is frmForm2
thisform.name is becoming frmForm1
control is moving to line Code line4 …. in the frmForm1 calling code. It is not stopping at 'Do Form frmForm2...' until the frmForm2 is released.
Can you please help me with this?
Thank you all for your time and help in advance...
I have a wierd problem. I am calling a modal form from a modal form. alwaysontop property is False for both forms. When the second form is intiated, it has focus. When I click on a button to activate a few controls (text boxes and checkboxes) the focus is coing back to the first form. Even thoud the second form is visible, it loses focus and not control is clickable. The only way to get out is to click CTRL+ALT+DEL.
When i debugged, I found this to be happening.
The code calling form2 in the form 1 is like this:
code line1.....
Code line2.....
DO Form frmForm2 with param1,parm2,parm3 to lcReturn
Code line4...
Code line 5 ...
When the frmForm2 is visible
_screen.activeform.name is frmForm2
thisform.name is frmForm2
When the 'Modify' button on frmForm2 is clicked and the code is executed
_screen.activeform.name is frmForm2
thisform.name is becoming frmForm1
control is moving to line Code line4 …. in the frmForm1 calling code. It is not stopping at 'Do Form frmForm2...' until the frmForm2 is released.
Can you please help me with this?
Thank you all for your time and help in advance...