C# Simple Form inside another Form

T

TCM

Hello.

I'm developing a windows form application in C#.

I have an options button in the main form. When this button is clicked
I want a new window to popup with options. While the options window is
visible, I don't want the user to be able to interact with the main
form.

Any ideas?

Thanks.
 
G

Guest

sure, just do this

frmOptions frm = new frmOptions;

frm.ShowDialog();

this shows a new dialog form. using show dialog, the user cant interact with
any other form in your app until the dialog form closes

hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top