>I have an application where the first screen has the foll properties:
>Modal
>As top level form
>and the init has : Application.Visible = .F. to hide the main vfox
>window.
>
>A button on this screen calls another form which is also Modal and
>isalso top level form.
>
>The problem I have is that the code executes (in the button click) and
>runs screen 2 and immediately returns to the first screen.
>
>What I am trying to do is to not allow focus on the 1st screen till the
>second called screen has finished.
>
>Basically the first screen accepts input and on clicking the find
>button, the second screen- a search form, pops up and on it closing,
>pumps data into the first screen field. But I cannot get the code to
>stop executing in the find button of the first screen. It calls the
>screen alright but does not wait for it to close before executing the
>rest of the code.
Your second forms' ShowWindow property should be set to 1-In Top Level not As Top Level.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."