PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Conditionally Display my ToolBar

Reply

Conditionally Display my ToolBar

 
Thread Tools Rate Thread
Old 17-06-2004, 07:15 AM   #1
Himanshu upadhyay
Guest
 
Posts: n/a
Default Conditionally Display my ToolBar


Hi

I want to display my toolbar only when user creating New
Mail or Forwarding mail or Replying.
is it possible.....?

Thanx in Advance

Himanshu
  Reply With Quote
Old 17-06-2004, 01:48 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Conditionally Display my ToolBar

In the NewInspector event test the Inspector.CurrentItem for the Class of
the item. You can look for olMail. That would give you all opened emails.

You can also hook the ActiveExplorer.Selection collection as an Outlook
Items collection and instantiate a MailItem that is declared WithEvents for
every item in the Selection collection. You'd do that by adding each one to
a wrapper collection that has a special class added to the collection for
each item in the Selection. The class would declare a MailItem WithEvents
and handle the Reply ReplyToAll and Forward events. When the selection was
changed (Explorer.SelectionChange) you would remove any classes whose item
was no longer selected from the wrapper collection and add any newly
selected items that are now in the Selection to the wrapper collection.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Himanshu upadhyay" <hupadhyay@samapatti.com> wrote in message
news:1d94001c45432$71d048b0$a501280a@phx.gbl...
> Hi
>
> I want to display my toolbar only when user creating New
> Mail or Forwarding mail or Replying.
> is it possible.....?
>
> Thanx in Advance
>
> Himanshu



  Reply With Quote
Old 17-06-2004, 02:47 PM   #3
Himanshu Upadhyay
Guest
 
Posts: n/a
Default Re: Conditionally Display my ToolBar

thanx Ken Slovak
i used messageclass and EntryId property of CurrentItem.

Regard
Himanshu

>-----Original Message-----
>In the NewInspector event test the Inspector.CurrentItem

for the Class of
>the item. You can look for olMail. That would give you

all opened emails.
>
>You can also hook the ActiveExplorer.Selection collection

as an Outlook
>Items collection and instantiate a MailItem that is

declared WithEvents for
>every item in the Selection collection. You'd do that by

adding each one to
>a wrapper collection that has a special class added to

the collection for
>each item in the Selection. The class would declare a

MailItem WithEvents
>and handle the Reply ReplyToAll and Forward events. When

the selection was
>changed (Explorer.SelectionChange) you would remove any

classes whose item
>was no longer selected from the wrapper collection and

add any newly
>selected items that are now in the Selection to the

wrapper collection.
>
>--
>Ken Slovak
>[MVP - Outlook]
>http://www.slovaktech.com
>Author: Absolute Beginner's Guide to Microsoft Office

Outlook 2003
>Reminder Manager, Extended Reminders, Attachment Options
>http://www.slovaktech.com/products.htm
>
>
>"Himanshu upadhyay" <hupadhyay@samapatti.com> wrote in

message
>news:1d94001c45432$71d048b0$a501280a@phx.gbl...
>> Hi
>>
>> I want to display my toolbar only when user creating New
>> Mail or Forwarding mail or Replying.
>> is it possible.....?
>>
>> Thanx in Advance
>>
>> Himanshu

>
>
>.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off