Teresa
If you set the ShowWindow property to 2 then the modal setting is *ignored*! It is always *modeless* and this is your problem. The window is no longer modal and therefore pocessing simply carries on after the Do Form statement.
Jos
>Yes frmnewlogin window type property is set to modal and its show window property is set to 2 as top level form.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.