Creating Command Bar Button/Poppu like the 'Send' button

B

BG

I am trying to create a command bar popup similar to the 'Send' button in
Outlook using a VB.net add-in. I would like a dropdown with several buttons
that display an icon
and some text. I can get it to work with only text, how can I add the icon
to the button as well? Here is some sample code of how I am adding the
button:

btnMyBtn = cbActions.Controls.Add(Type:=MsoControlType.msoControlButton)
With btnMyBtn
.Caption = "Profiler"
.Style = MsoButtonStyle.msoButtonIcon
.FaceId = 161
.TooltipText = "Profiler"
.Tag = "Profiler"
.OnAction = "!<MyCOMAddin.Connect>"
.Visible = True
End With

The .FaceId property doesn't seem to do anything. Am I missing something?

I would also like to have a break line in my dropdown like there is in the
'Send' dropdown b/w 'Post in this folder' and 'Folder'. How can I accomplish
this?

Any help is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top