Click here to Skip to main content
13,147,956 members (91,301 online)
Rate this:
Please Sign up or sign in to vote.
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 19-Oct-12 17:45pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 20 Oct 2012
Copyright © CodeProject, 1999-2017
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