Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How can i show icon of image manager in messagebar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can i show icon of image manager in messagebar

 Post Reply Post Reply
Author
Message
unforgiven View Drop Down
Groupie
Groupie
Avatar

Joined: 24 February 2010
Location: Neverland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote unforgiven Quote  Post ReplyReply Direct Link To This Post Topic: How can i show icon of image manager in messagebar
    Posted: 25 February 2011 at 3:38am

Hi developers

I'm gooing to put icon in messagebar,but i coulden't do it yet. i took a look in sample code , but i didn't know how can i use icon such as this sample code, 

I used this code :

Dim MessageBar As MessageBar
Set MessageBar = CommandBars.MessageBar
MessageBar.Visible = True
MessageBar.Message = _
"<StackPanel Orientation='Horizontal'>" & _
" <Image Source='32988'/>" & _
" <TextBlock Padding='3, 0, 0, 0' VerticalAlignment='Center' ><Bold>Security Warning</Bold></TextBlock>" & _
" <TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center'>Certain content has been disabled.</TextBlock>" & _
"

i want to use icon in image manager and show it in messagebar

please show me how can i use icon of image manager and show this icon on messagebar

thank's all 

Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2011 at 4:42am
Hi,

Use the following code:


    Dim MessageBar As MessageBar
    Set MessageBar = CommandBars.MessageBar
    CommandBars.GlobalSettings.Icons.AddIcons ImageManager.Icons


That will allow your MessageBar to be associated with the ImageManager so your image with id 32988 will be shown.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
unforgiven View Drop Down
Groupie
Groupie
Avatar

Joined: 24 February 2010
Location: Neverland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote unforgiven Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2011 at 1:00am

Hi again Xander75

thank you so much , your code help me to develope my prog.


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.140 seconds.