Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 19-Oct-12 17:45pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

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



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 20 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100