Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Lock a Form control
 

Lock a Form control

I have two forms .In main form i have a button which i open u the second form but what i need is when the form2 is visible it should not be resized or even minimized as well as when i click outside the form2 it should not lose it's focus same like Taskmanager (Ctrl Alt Delete) ..How to do it ?
.Net Noobler  Thursday, September 24, 2009 8:15 AM
Hi,
use form2.ShowDialog();
Form2 frm2 = new Form2();
            frm2.MinimizeBox = false;
            frm2.ShowDialog();

Best Regards, C.Gnanadurai ----------------------- Please mark the post as answer if it is helpfull to you
Gnanadurai  Thursday, September 24, 2009 8:22 AM
Hi,
use form2.ShowDialog();
Form2 frm2 = new Form2();
            frm2.MinimizeBox = false;
            frm2.ShowDialog();

Best Regards, C.Gnanadurai ----------------------- Please mark the post as answer if it is helpfull to you
Gnanadurai  Thursday, September 24, 2009 8:22 AM

You can use google to search for other answers

Custom Search

More Threads

• Create Control Panel Form Layout
• File signing in .NET
• confussion into how to put progress bar into my project
• hot tracking menuitems
• visibility of controlls while editing.
• Report Filtering C# 2005 - rdlc report
• How to stop appended columns in DataGridView when using DataSource reference?
• ToolStripComboBox
• fit windows form to any screen resolution
• How do I change home windows?