Ben McCormack Ben McCormack - 6 months ago 3x Question

How do I make a form modal in Windows Forms?

I'm trying to create a child form that helps the user to enter data for a field in the parent form. I want this child form to be modal, but what do I need to do to make this form modal?

Is there's a different type of item I need to use?


Use Form.ShowDialog()

As Bob mentioned, you should set Form.DialogResult accordingly on your modal form.