c# - Same MDI Form for nested forms -


i have mdi form (main software form "form_main" ) has menustrip.

clicking menu open search form "form_search" using following code:

// main form form_search frm = new form_search(); frm.mdiparent = this; frm.show(); 

when user selects desired result, details form "form_details" should opened show information of selected result. opening details done using following code:

// search form form_details frm_det = new form_details(selectedid); frm_det.show(); 

but details form "form_details" out of mdi space.

my question how can open details form "form_details" search form "form_search" still under mdi form "form_main"

thanks or suggestions

you need set mdi parent of new form same, main parent:

form_details frm_det = new form_details(selectedid); frm_det.mdiparent = this.mdiparent; frm_det.show(); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -