menu strip and mdi in vb 2005  
Author Message
Binu Jeesman





PostPosted: Windows Forms Data Controls and Databinding, menu strip and mdi in vb 2005 Top

hi,

i am using visual basic 2005. i have an mdi parent form and i added a menu strip for that with 2 menus.

forms-form1,form2, form3(sub items)

and reports-report (rpt 1, rpt 2...)

i wrote code to display form 1, form2...when i click on each form.

form1, form2 etc are other forms in the application and i set the window state to maximised for all and ismdichild property to true.

when im running the application when i click on each menu item, the corresponding form is getting diaplayed, but it the menu items are not displayed. i mean the forms are not coming as child forms. i have to close the form1 to see mdi form.

how can i solve it

Binu




Windows Forms6  
 
 
Binu Jeesman





PostPosted: Windows Forms Data Controls and Databinding, menu strip and mdi in vb 2005 Top

i got the answer.

i had to write the following code.

Form7.MdiParent = Me

Form7.Show()