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