Click here to Skip to main content
13,505,751 members
Rate this:
Please Sign up or sign in to 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.

Posted 9-Dec-12 21:38pm
aspnet_regiis -i 10-Dec-12 3:41am
send us the excel 10-Dec-12 4:43am
please inform me too when u hv done this.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180417.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100