Click here to Skip to main content
11,583,532 members (64,767 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET COM Excel
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 9-Dec-12 21:38pm
Comments
aspnet_regiis -i at 10-Dec-12 3:41am
   
send us the excel
AnkitGoel.com at 10-Dec-12 4:43am
   
please inform me too when u hv done this.

1 solution

Rate this: bad
good
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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 1,523
1 Sergey Alexandrovich Kryukov 995
2 Abhinav S 696
3 Dave Kreskowiak 621
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2015
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