You are here -> Home > Developer Center > Making a Windows Form a Dialog

Making a Windows Form a Dialog
By: Jason Nowicki This article has been viewed 757 times.

   For you seasoned vets this may be a no brainer but for us web guys this was information that was nowhere to be found on the net. Say I have a form and I want to open another and have it return a dialogresult back to the opening form. This is done by like this:

DialogResult = DialogResult.Ok

- or -

DialogResult = DialogResult.Cancel

Hope this helps someone.

How helpful was this article?