Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

Can you post your project? I cannot duplicate this in either .NET 1.0 or .NET 1.1.

 

-Ner

"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
Posted (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 by divil
Posted

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...

  • *Experts*
Posted

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

"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
Posted

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

Posted

[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....

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...