>Suppose this is in the click event of a button :
>
>do form form1
>do form form2
>
>I wish to execute form2 after form1 is released. What is happening that both the forms become active.
>
>This is just a schematic. In my application I CAN NOT do form2 in click event of the button which will release form1.
>
>What do I do? Am I designing in a wrong way? Is this not a correct way to think?
Make Form1 modal (WindowType = 1). Execution will stop while Form1 is visible. When you release it, Form2 will be launched.
As for your question about designing it wrong, I can't answer that because I don't know your situation. If you want the user to only execute one form at a time in succession without the abilty to go backward, then yes.
Otherwise, you might look at creating a wizard. One form with a pageless pageframe and Back and Next buttons that set the ActivePage accordingly.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao