Re: Clicking a button and pressing Enter key act different in MDI
From: Jeffrey Tan[MSFT] (v-jetan_at_online.microsoft.com)
Date: 01/07/05
- Next message: petterl: "Re: "Process cannot access file" problem"
- Previous message: Joakim Karlsson: "Re: "Cannot access a disposed object" - weird exception."
- In reply to: tsiGeorge: "Re: Clicking a button and pressing Enter key act different in MDI"
- Next in thread: tsigeorge: "Re: Clicking a button and pressing Enter key act different in MDI"
- Reply: tsigeorge: "Re: Clicking a button and pressing Enter key act different in MDI"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 07 Jan 2005 07:42:45 GMT
Hi molly,
Sorry for letting you wait for so long.
I have doing some research into your project and reproduced out your issue.
If you view Form.MdiChildActivate Event in MSDN, you will see that:
This event "Occurs when a multiple document interface (MDI) child form is
activated or closed within an MDI application."
But in your project, it seems that you use Form.Visible=false to invoke
container's MdiChildActivate event. Based on the MSDN document above, this
behavior is not mentioned, I think this is a undocumented behavior.
Although, it works most of the time in Form.Visible=false, this behavior is
not guaranteed.
Actually, for your request, I think a more suggested design is swiching the
child form visibility in Button click event, not in MdiChildActivate event.
Also, I think this is not a hard task.
Hope this reply makes sense to you. If you have any questions or concerns,
please feel free to post it in the group. I am standing by to be of
assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
- Next message: petterl: "Re: "Process cannot access file" problem"
- Previous message: Joakim Karlsson: "Re: "Cannot access a disposed object" - weird exception."
- In reply to: tsiGeorge: "Re: Clicking a button and pressing Enter key act different in MDI"
- Next in thread: tsigeorge: "Re: Clicking a button and pressing Enter key act different in MDI"
- Reply: tsigeorge: "Re: Clicking a button and pressing Enter key act different in MDI"
- Messages sorted by: [ date ] [ thread ]