Adding button to email/task/appointment forms

  • Thread starter Thread starter Russ Holmes
  • Start date Start date
R

Russ Holmes

Hi,

I need to add a button to the email, task and appoiontment forms. This then
needs to start an executable when clicked. How would I do this in VB.NET
addin? I am able to restrict this to certain Outlook versions (ie no
problem if you can only do it in Outlook 2002 + )

I have been able to create a button on the main outlook toolbar....

MyButton = oStandardBar.Controls.Add(1)

....and and start the exe using....

Private Sub MyButton_Click(ByVal Ctrl As
Microsoft.Office.Core.CommandBarButton, ByRef CancelDefault As Boolean)
Handles MyButton.Click

Process.Start("C:\MyExe.exe")

End Sub

Are there any security implications in doing this?

Thanks in advance
 
You don't add buttons to any forms with VB.NET. Forms are customized with
the built-in Outlook forms designer. Perhaps you're thinking of adding a
button to the toolbar or menu bar? Those are part of the Inspector window,
not custom forms. The Inspector is the analog for individual items of the
Explorer window you've already used to add a button to the main Outlook
window.
 
Ahhh..so yes, I need to add a button to the Inspector Toolbar.

Are there any good code samples out there to do this?

Many Thanks

Russ
 
Back
Top