>Thanks for your reply. Please help further. I made the first form modal. But Still both the forms are becoming active at a time. What should I do?
Is form1 configured to be a Top-level form (ShowWindow = 2)? If so, then it can't be modal. You can change it to be ShowWindow = 0 (In Screen) and set the Desktop p[roperty to .T. if you want the floating form look.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao