Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a c# win form program it's contain midi parent and child forms i want to call a form in mdi child form
eg :
mdi child form is frmCompany.cs, this form contain text box called comCode when i press f2 function key on text box it should appear another form call frmsearch but the thing is after calling the frmsearch form it should be the top order form, it should not allow to access previous form until newly called frmsearch form is closed

how to do this task ?
Please Help Me
Posted

1 solution

Use InstanceName.ShowDialog() to keep it modal, and don't make this form MDI child.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900