I am gonna think that you are using desktop application and displayed a dialog and dont want the user to do anything unless he answers for that dialog and you trying the hard way to do this :-)
so here is your answer according to my clear imagination to your unclear question :D
yourdialogname.ShowDialog(this);
here you are a strange answer for even more stranger question hope this helped :D