update active window

V

vj5

Hi
i am using a commandbar control in my com adin.
i wants to make a commandbar button disable when user open any other
application /window and again comes in excel
window activate will work for Excel application only.
how to do that?
 
X

Xcelion

HI Vj

I don't know whether there is any easy way out. What I did was to get the
handle to excel main window and track its lost focus and got focus events.


Thanks
Xcelion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top