Hi. How can I do that: I have got a dialog, few checkboxes in it, and ok, cancel buttons. So how can I do that: If X checkbox is checked, and user clicks ok button it displays A window. If Y checkbox is checked and user clicks ok button, the B windows is displayed. How can I do that in code?