Raise MouseMove event in MDI parent in VB.NET

09-20-2006, 12:38 AM
How can I raise mousemove event in a form whose IsMDIContainer is set to true? I searched the different forums and knowledge base but I can't find the solution for this.

09-20-2006, 02:11 AM
I've done a quick search myself it would appear it's not possible (see last paragraph of this (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconFormEventChangesInVisualBasicNET.asp) article). Perhaps if you explain what you are trying to achieve we can suggest a workaround.

09-20-2006, 06:43 PM
Thanks for your reply. The scenario is I have a side menu on my MDI form, and a picture box beside it both docked to the left. What I want to do which works with VB6 is whenever I put my mouse over the picture box, the side menu would appear and on MouseMove in the MDI form, the side menu would then disappear (concept of autohide). Maybe I'll just use the MdiChildActivate event to trigger this. Thanks for the info.

09-21-2006, 12:35 AM
You might be able to get an alternative working using the MouseEnter and MouseLeave events of the panel.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum