Thanks dear, thanks for the kind response. It really helped me alot.
One thing more, on a button click i am opening a Dialog form, Dialog form has a Back button in its header. On click of back button how can i close the dialog or go back to mainform.
For best results, use the Firefox browser..