Hi

From form1, when i click the command button it should open the form2 as
vbmodal and once i do the calculation on form2 and it should return to form1.

i am calling form2 like this

dim tmp as new form2
tmp.showdialog()

but the focus not coming back to form1. what to do?

thanks
bala