Eventhandling Outlook

Add-in Express™ Support Service
That's what is more important than anything else

Eventhandling Outlook
 
Andy Meyers




Posts: 2
Joined: 2004-12-22
Hello everybody,

I'm new in this forum and I hope to find help :D

I insertet a button in a Outlook Toolbar. These button do something onClick. Now I want to enable the Button only, when the Inbox is the current folder.
How can I handle this? I know that I can dissable the button with

menuInfoButton.Enabled = false;


But how can I enable the button, when I switch to the Inbox?

Thanks!

andy
Posted 22 Dec, 2004 03:49:46 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Andy,

You should use the FolderSwitch event of Outlook Explorer object to enable your button. You can get current folder via the CurrentFolder property of Outlook._Explorer interface.
Posted 22 Dec, 2004 05:30:57 Top
Guest


Guest


Oh, yes I see! Must I build a new eventhandler-method, or how the programm knows when the folder switches?
I mean where I have to place the clause?

Thank you!

andy
Posted 22 Dec, 2004 06:24:36 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Andy,
As far as I understand, you don't use Add-in Express, do you?
Posted 22 Dec, 2004 06:47:24 Top
Andy Meyers




Posts: 2
Joined: 2004-12-22
Sorry, I was away for a time.

No I don't use the Add-in Express.

But how can I realize it, that the Button only is enabled if the current folder is the inbox?

Thank you!
Posted 03 Jan, 2005 01:33:45 Top