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.
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.