Open Browser in Outlook in VS Add-Ins

Hi ,

I got a question from one of my friends,he’s creating an Outlook Add-In and he wants to open a specific website inside outlook.

To do so,simply create a new project Outlook 2007 Add-In,and paste below couple of lines of code,this will open a url inside your outlook.

C# Code :

Office.CommandBarComboBox webControl1 =
(Office.CommandBarComboBox)this.Application.ActiveExplorer().CommandBars.FindControl(26, 1740, missing, missing);webControl1.Text = “http://moustafa-arafa.blogspot.com”;


This code will be used on your Button Click event or any other event handler as per your requirements.

Hope this Tip helps.

Regards,
Mostafa arafa

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>