git Posted May 9, 2003 Posted May 9, 2003 Hello all, i"ve written an application in visual Studio .Net (visual basic) but encounterd some sort of bug... Please look into the following: Situation ------------------------------------------------ .net framework 1.1 studio.net -> visualbasic Main-form contains: Mdi-container property = true menu-items one menu-item contains this code under the click event and launches a mdi-child named Offerte_form: Dim NewMDIChild As New Offerte_form() Set the Parent Form of the Child window. NewMDIChild.MdiParent = Me Display the new form. NewMDIChild.Show() [/Code] Offerte_form contains: menu-items textbox (just as reference) one menu item contains: name: &Windows MDI-list property = true Problem ---------------------------------------------- Now the following problem arises: when clicking the &windows when the MDI-Childform is in normal mode (e.g. not fully maximized) the MDI-list is generated properly. But when i maximize the MDI-Childform and click on &windows agian the fist time it will not show the list. Clicking the second time on the &window will result in the list. Did i forget something to set or is this a bug in studio.net? regards hilmar Quote
*Experts* Nerseus Posted May 9, 2003 *Experts* Posted May 9, 2003 Can you post your project? I cannot duplicate this in either .NET 1.0 or .NET 1.1. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
git Posted May 9, 2003 Author Posted May 9, 2003 (edited) MDI-List example here by the example. if: the mdi-childform is normal: no problem... mdilist=ok the mdi-childform is maximized: problem!!... mdilist=not ok needs 2 clicks to display... regards hilmar [edit] Please don't include binaries in attachments - divil [/edit]windowsapplication5.zip Edited May 10, 2003 by divil Quote
git Posted May 12, 2003 Author Posted May 12, 2003 Does Nobody Experienses this kind of behavour? please reply if this is the case... regards hilmar p.s.sorry about the binary in the zip file above.... didn't remove the build dir from the project... Quote
*Gurus* divil Posted May 12, 2003 *Gurus* Posted May 12, 2003 Weird... I actually get a NullReferenceException from somewhere in the framework when I maximize them after I've already looked at the Windows menu. I'm guessing this is a bug you should submit to Microsoft. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* Nerseus Posted May 12, 2003 *Experts* Posted May 12, 2003 I didn't get the NullReference, but I do get the Windows menu problem you're talking about. It's as if the Windows menu "eats" the first click - just doesn't respond. By the way, it only appears to happen if your child forms have menus. My original sample project didn't have any menus on the child forms. If you take off the main menus from your child forms you'll notice the Windows menu working as expected. Oddly enough, the select and popup events fire on the window marked as the MdiList, it just doesn't show the list. You might be able to do that manually to get around the bug for now. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
git Posted May 12, 2003 Author Posted May 12, 2003 I've also noticed that the mdi-list creates a memmory-leak. with or without the menu's in the 2 other forms.. i think i will submit this problem to microsoft.. after i did a complete reinstall of XP & .Net & Studio just to be sure it's not my config... regards hilmar Quote
git Posted May 20, 2003 Author Posted May 20, 2003 [update] i've also found out by change that the first click on this menu item will result in a click on the menu-item on the right. problem send to microsoft.... Quote
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.