![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi there,
How can i add a button to the Right-mouse context menu in Outlook? Thanks Donald |
Ads |
#2
|
|||
|
|||
![]()
Hi Donaly you need to attach to the the CommandBars.OnUpdate event look
for the this._explorer.CommandBars["Context Menu"]; This will be the command bar you then need to add your buttons to. Rog donald wrote: Hi there, How can i add a button to the Right-mouse context menu in Outlook? Thanks Donald |
#3
|
|||
|
|||
![]()
thanks Rog
that work just lovely |
#4
|
|||
|
|||
![]()
Hi,
I tried to initialise the Context menu during startup. But it does not show up. Is there anything i missed? Or should i initialise the Context menu on CommandBar.update ? thanks "donald" wrote: thanks Rog that work just lovely |
#5
|
|||
|
|||
![]()
Use the .Update event.
-- 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 "Adi" wrote in message ... Hi, I tried to initialise the Context menu during startup. But it does not show up. Is there anything i missed? Or should i initialise the Context menu on CommandBar.update ? thanks |
#6
|
|||
|
|||
![]()
Hi,
It still does not work. And i think it should be .OnUpdate and not .Update as there is no such event for COmmandBars. I am pasting my code here. Please help me out. OnStartupComplete() { ......... ....... _CommandBarsEvents_OnUpdateEventHandler oUpdate = new _CommandBarsEvents_OnUpdateEventHandler(onUpdate); this.commandBars.OnUpdate += oUpdate; ....... } public void onUpdate() { try { this.toolbarButton2 = (CommandBarButton)this.commandBars["Context"].Controls["Up"]; } catch (Exception e) { this.toolbarButton2 = (Microsoft.Office.Core.CommandBarButton)this.comma ndBars["Context"].Controls.Add(MsoControlType.msoControlButton, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value); this.toolbarButton2.Caption = "Up"; this.toolbarButton2.Style = Microsoft.Office.Core.MsoButtonStyle.msoButtonAuto matic; } this.toolbarButton2.Tag = "Up"; this.toolbarButton2.Visible = true; this.toolbarButton2.Priority = 1; this.toolbarButton2.Enabled = true; } Am i missing something? "Ken Slovak - [MVP - Outlook]" wrote: Use the .Update event. -- 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 "Adi" wrote in message ... Hi, I tried to initialise the Context menu during startup. But it does not show up. Is there anything i missed? Or should i initialise the Context menu on CommandBar.update ? thanks |
#7
|
|||
|
|||
![]()
Try using "Context Menu" instead of "Context"
Rog Adi wrote: Hi, It still does not work. And i think it should be .OnUpdate and not .Update as there is no such event for COmmandBars. I am pasting my code here. Please help me out. OnStartupComplete() { ........ ...... _CommandBarsEvents_OnUpdateEventHandler oUpdate = new _CommandBarsEvents_OnUpdateEventHandler(onUpdate); this.commandBars.OnUpdate += oUpdate; ...... } public void onUpdate() { try { this.toolbarButton2 = (CommandBarButton)this.commandBars["Context"].Controls["Up"]; } catch (Exception e) { this.toolbarButton2 = (Microsoft.Office.Core.CommandBarButton)this.comma ndBars["Context"].Controls.Add(MsoControlType.msoControlButton, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value); this.toolbarButton2.Caption = "Up"; this.toolbarButton2.Style = Microsoft.Office.Core.MsoButtonStyle.msoButtonAuto matic; } this.toolbarButton2.Tag = "Up"; this.toolbarButton2.Visible = true; this.toolbarButton2.Priority = 1; this.toolbarButton2.Enabled = true; } Am i missing something? "Ken Slovak - [MVP - Outlook]" wrote: Use the .Update event. -- 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 "Adi" wrote in message ... Hi, I tried to initialise the Context menu during startup. But it does not show up. Is there anything i missed? Or should i initialise the Context menu on CommandBar.update ? thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 'Import and Export' missing from Files menu | Spailpin | Outlook - Installation | 2 | March 18th 06 07:13 PM |
How do I add a new option in the context menu(Outlook)? | Outllok - context menus aad ins | Outlook - Using Forms | 5 | March 16th 06 03:47 PM |
custom menu command | Melissa m | Outlook - Using Contacts | 1 | February 27th 06 08:27 PM |
Adding Outlook Express to my start menu | MP Boettger | Outlook - General Queries | 1 | February 22nd 06 06:45 PM |
Context Menu not present | Mono | Outlook Express | 5 | February 7th 06 07:22 PM |