I am having an issue where I am opening a Dialog page when users click on a button on the main page of the application and it will open the window once. If the button to open the dialog window is clicked again while the application is open nothing happens and it doesnt open the Dialog window.

Button Code to open the Dialog window on the main page:
using the code: DialogEx.Show("Settings");

Then on the Settings Dialog window there is a close button with the code:
result = DialogEx.Close(0);

Am I missing something or doing something wrong with this code. Thanks in advance I really appreciate it.