teixeira Posted April 12, 2005 Posted April 12, 2005 Hi all, I have a mdi parent and some mdi child forms. When i open the mdi childs I put a mnuitem visible and rediochecked refering to the child form opened. Basicly its to have a way of navigate trought openned mdi windows. When i close de mdi form i want to hide the menu item that correspond to the closed child form. I wanna know how can i do this. The problem is to access to the mdiparent reference to manipulate its controls. Any help or code will be welcome. Thanks a lot Teixeira Quote
Leaders snarfblam Posted April 12, 2005 Leaders Posted April 12, 2005 Is there any reason why you can't just use a window list? If so I would have the mdi parent handle child form's close and activate events and handle all the menu functions within the parent form. Quote [sIGPIC]e[/sIGPIC]
teixeira Posted April 12, 2005 Author Posted April 12, 2005 thanks but it don't solve my problem.... i think ... but if you can modify a listview perhaps you can modify other controls, by your way... Please send me the code you have i'll try it..ok? Thanks Teixeira Quote
Leaders snarfblam Posted April 12, 2005 Leaders Posted April 12, 2005 "Window list" was the name used in VB6. In .Net it is "MDI list," so I suppose I should have said that. Anyways, if you don't know what I'm talking about, add a new top level menu item to your mdi parent, and set the "MdiList" property to True, run the app, open some mdi children, then click the menu item on the menu bar. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.