C# Simple Form inside another Form

  • Thread starter Thread starter TCM
  • Start date Start date
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.
 
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
 
Back
Top