Dear DataMiser,

the calculation work. Thanks.
but there another problem. when i drag the from1 dialog, the form2 dialog will not move together.