<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to add a custom toolbar button and give it a tooltip</title><link>http://blogs.technet.com/kclemson/archive/2004/05/20/how-to-add-a-custom-toolbar-button-and-give-it-a-tooltip.aspx</link><description>Bob asked in the comments on this article if it's possible to add a tooltip to a button. Here's one way to do it programmatically for your own buttons. The below example adds a custom button to the standard toolbar and assigns it a tooltip. Note that</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How to add a custom toolbar button and give it a tooltip</title><link>http://blogs.technet.com/kclemson/archive/2004/05/20/how-to-add-a-custom-toolbar-button-and-give-it-a-tooltip.aspx#170767</link><pubDate>Thu, 01 Jul 2004 11:49:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:170767</guid><dc:creator>steve.beynon@intergraph.com</dc:creator><description>Am attempting to use your code to auto-generate a custom toolbar button however am having problems passing the Outlook appicaton obect into your code.&lt;br&gt;&lt;br&gt;Does the Outlook app have to be open when you run your code or can I automate the opening of Outlook, then pass this into your code for creation of the custom toolbar button&lt;br&gt;&lt;br&gt;Thanks in advance for any information you may be able to provide&lt;br&gt;&lt;br&gt;regards&lt;br&gt;&lt;br&gt;Steve Beynon </description></item><item><title>re: How to add a custom toolbar button and give it a tooltip</title><link>http://blogs.technet.com/kclemson/archive/2004/05/20/how-to-add-a-custom-toolbar-button-and-give-it-a-tooltip.aspx#170803</link><pubDate>Thu, 01 Jul 2004 12:40:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:170803</guid><dc:creator>steve.beynon@intergraph.com</dc:creator><description>Here is the revised code that I am using to open and create the custom toolbar button on the Standard toolbar&lt;br&gt;&lt;br&gt;Public Function StartOutlook(Optional ProfileName) As Outlook.Application&lt;br&gt;&lt;br&gt;Dim lobjOutlookApp As Outlook.Application&lt;br&gt;Dim lobjSaveEmailToSPFButton      As CommandBarButton&lt;br&gt;Dim lobjStandard                  As CommandBar&lt;br&gt;Dim cbExist                       As Boolean&lt;br&gt;&lt;br&gt;'obtain the os username and set as ProfileName&lt;br&gt;ProfileName = Environ(&amp;quot;USERNAME&amp;quot;)&lt;br&gt;&lt;br&gt;On Error Resume Next&lt;br&gt;&lt;br&gt;Set lobjOutlookApp = GetObject(, &amp;quot;Outlook.Application&amp;quot;)&lt;br&gt;&lt;br&gt;'On Error GoTo InstallToolbarOutlook_ERROR&lt;br&gt;&lt;br&gt;If lobjOutlookApp Is Nothing Then&lt;br&gt;&lt;br&gt;    Set lobjOutlookApp = CreateObject(&amp;quot;Outlook.Application&amp;quot;)&lt;br&gt;    lobjOutlookApp.Session.Logon ProfileName, , False, True&lt;br&gt;&lt;br&gt;End If&lt;br&gt;&lt;br&gt;' now setup the custom toolbar button on the standard toolbar&lt;br&gt;&lt;br&gt;    'The Standard toolbar is the one with &amp;quot;New&amp;quot;, &amp;quot;Send/Receive&amp;quot;, etc on it.&lt;br&gt;    Set lobjStandard = lobjOutlookApp.ActiveExplorer.CommandBars(&amp;quot;Standard&amp;quot;)&lt;br&gt;&lt;br&gt;&amp;quot;NB: The line above sets lobjStandard as Nothing even though lobjOutlookApp is set to Outlook&amp;quot;&lt;br&gt;&lt;br&gt;    cbExist = IsMenuThere(&amp;quot;Standard&amp;quot;, &amp;quot;CustomButton&amp;quot;)&lt;br&gt;    &lt;br&gt;    'If the option is not already on the menu, add it&lt;br&gt;    If cbExist = False Then&lt;br&gt;    &lt;br&gt;        Set lobjSaveEmailToSPFButton = lobjStandard.Controls.Add(msoControlButton)&lt;br&gt;        &lt;br&gt;        With lobjSaveEmailToSPFButton&lt;br&gt;                .BeginGroup = True&lt;br&gt;                .Caption = &amp;quot;Custom&amp;amp;Button&amp;quot;&lt;br&gt;                .OnAction = &amp;quot;SaveEmailToSPF_Click&amp;quot;&lt;br&gt;                .ToolTipText = &amp;quot;Save Email To SPF&amp;quot;&lt;br&gt;                .Style = msoButtonIconAndCaption&lt;br&gt;        End With&lt;br&gt;        &lt;br&gt;    End If&lt;br&gt;&lt;br&gt;InstallToolbarOutlook_EXIT:&lt;br&gt;    'close all applications&lt;br&gt;    Set lobjOutlookApp = Nothing&lt;br&gt;    Unload frmInstallToolbar&lt;br&gt;    pobjOutlookApp.Quit&lt;br&gt;    Exit Function&lt;br&gt;&lt;br&gt;InstallToolbarOutlook_ERROR:&lt;br&gt;    InstallToolbarOutlook = False&lt;br&gt;    GoTo InstallToolbarOutlook_EXIT&lt;br&gt;&lt;br&gt;End Function</description></item><item><title>re: How to add a custom toolbar button and give it a tooltip</title><link>http://blogs.technet.com/kclemson/archive/2004/05/20/how-to-add-a-custom-toolbar-button-and-give-it-a-tooltip.aspx#172157</link><pubDate>Fri, 02 Jul 2004 23:02:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:172157</guid><dc:creator>KC Lemson</dc:creator><description>In my case, I was running this code from within the VBA editor in Outlook, so yes it was open. I'm not such an expert in this area that I can tell you exactly what to do here though, I recommend checking out www.outlookcode.com.</description></item><item><title>How to add a custom toolbar button and give it a tooltip.</title><link>http://blogs.technet.com/kclemson/archive/2004/05/20/how-to-add-a-custom-toolbar-button-and-give-it-a-tooltip.aspx#182086</link><pubDate>Tue, 13 Jul 2004 23:56:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:182086</guid><dc:creator>Alan's Radio Weblog</dc:creator><description>How to add a custom toolbar button and give it a tooltip .</description></item><item><title>re: How to add a custom toolbar button and give it a tooltip</title><link>http://blogs.technet.com/kclemson/archive/2004/05/20/how-to-add-a-custom-toolbar-button-and-give-it-a-tooltip.aspx#209455</link><pubDate>Fri, 06 Aug 2004 02:16:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:209455</guid><dc:creator>Gorgi Terziev</dc:creator><description>Do you have any advice how to add transparent icon to Outlook2000 toolbar and menu? &lt;br&gt;I have created COM Addin in VC#.NET that is supposed to work for Outlook2000, XP and 2003. Unfortunately - Outlook2000 handles icons differently then OutlookXP and Outlook2003. &lt;br&gt;I have found an article on MSDN which describes a technique how to accomplish this using Win32 API, but I want to avoid using Win32.&lt;br&gt;</description></item></channel></rss>