Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MDI Child behaves badly

0 views
Skip to first unread message

msnews.microsoft.com

unread,
Feb 14, 2002, 6:55:09 PM2/14/02
to
Ok, so here's the thing:

make a basic mdi form setup -- form1 is mdiparent of form2
form2 has a button with a mouseenter/mouseleave event (whatever, I just
changed the text, for example)
form1 has show/hide buttons which show() or hide() form2 -- form2 is
instantiated with form1 onload.

when you first show form2, the mouse events work peachy.

now hide it, show it again. mouseEnter/Leave events no longer register
(click still works though). try setting breakpoints in the event handler
and you'll see it doesn't even go there.

a friend of mine called my attention to this. he did it in c#. I repeated
it in VB. From that, I gather that this behavior is by design (a feature,
not a bug) and that our design model is somehow, er, flawed.

would someone care to explain this to me? pretend I'm stupid.


Patrick Steele [MVP]

unread,
Feb 15, 2002, 12:14:41 PM2/15/02
to
In article <#45awMbtBHA.2216@tkmsftngp05> (from "msnews.microsoft.com"
<shakespeare#earthling.net> <"msnews.microsoft.com"
<shakespeare#earthling.net>>),

> when you first show form2, the mouse events work peachy.
>
> now hide it, show it again. mouseEnter/Leave events no longer register
> (click still works though).

I just did a quick test and noticed the same thing. Interesting...

I'll ask around and see if this is a known issue.

--
Patrick Steele
Microsoft .NET MVP

0 new messages