Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Gurus,

I have an excel application which communicates to a C# application via COM addins.I need to figure out the area in the Excel workbook which contains the Excel mimimize/maximize/close buttons. So, that I could capture the mouse click event in that area and do something.
If anyone already explored it. Please help.

Thanks in Advance.

Regards,
Vieer
Posted
Comments
bbirajdar 10-Dec-12 3:41am    
send us the excel
AnkitGoel.com 10-Dec-12 4:43am    
please inform me too when u hv done this.

1 solution

To the best of my knowledge you can't capture the minimise/maximise events in Excel (the Workbook.WindowResize event does not fire).
You could use your C# application to poll the excel object and query it's windowstate to get over that.

Capture the Close button in Excel with the Workbook.BeforeClose event
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900