A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

icon in outlook addin commandbar..



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 28th 06, 09:17 AM posted to microsoft.public.outlook
Joe
external usenet poster
 
Posts: 3
Default icon in outlook addin commandbar..

hi

i am facing a serious problem with my icons in my Outlook Shared-Addin
which i created using Visual Studio 2005 [c#] . i not able to use files
of *.ico format for the purpose. The one's which are acceptable in the
methods which i came accross take only *.bmp .

i ve used 2 of the following methods both give the same output..
Method 1.

Bitmap bmp;
bmp = (Bitmap)rm.GetObject("calendarIcon");
System.Drawing.Color colorTransparent = bmp.GetPixel(0,
0);
for (int x = bmp.Width - 1; x = 0; x--)
for (int y = bmp.Height - 1; y = 0; y--)
if (bmp.GetPixel(x, y) == colorTransparent)
bmp.SetPixel(x, y,
System.Drawing.Color.FromKnownColor(System.Drawing .KnownColor.Control));

Clipboard.SetDataObject(bmp);
ipolipoButton.FaceId = 0;
ipolipoButton.PasteFace();
Method 2.
iPolipoCalendar frmCalendar = new iPolipoCalendar();
ipolipoButton.Picture =
(IPictureDisp)AxHost2.GetIPictureDispFromPicture(f rmCalendar.iconList.Images[0]);
~~~~~~~~
public class AxHost2 : AxHost
{
public AxHost2()
: base("59EE46BA-677D-4d20-BF10-8D8067CB8B33")
{
}
public new static IPictureDisp GetIPictureDispFromPicture(Image
image)
{
return
(IPictureDisp)AxHost.GetIPictureDispFromPicture(im age);
}
}
~~~~~~~~~~~~~~
both these methods fail to give a trasparent effect to the icons in my
commadbar..
method 1 . works fine for outlook xp as its backcolor is Color.Control.
but the same displays a shadow when it comes to Outlook 2003.

then again.. in the Method 2 *.ico files are not accepted.. only Image
is the acceptable type..

How do i do this .. i ve seen addin with perfect icons like
"GotoMeeting" etc.

could some of the Outlook experts help me out.. is there anyother way
to get it done..

thanks in advance.

Ads
  #2  
Old November 28th 06, 01:43 PM posted to microsoft.public.outlook
Brian Tillman
external usenet poster
 
Posts: 17,452
Default icon in outlook addin commandbar..

Joe wrote:

i am facing a serious problem with my icons in my Outlook Shared-Addin
which i created using Visual Studio 2005 [c#] . i not able to use
files of *.ico format for the purpose. The one's which are acceptable
in the methods which i came accross take only *.bmp .

i ve used 2 of the following methods both give the same output..
Method 1.


Programming questions go in the programming newsgroups.
news://msnews.microsoft.com/microsof...program_addins
--
Brian Tillman
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with commandbar position and word as e-mail-editor Peter Marchert Outlook and VBA 2 October 10th 06 05:37 PM
Missing envelope icon on tray icon Cool As Blu Outlook - General Queries 1 August 8th 06 01:37 AM
Custom Commandbar doesn't appear when opening or creating a new email Karsten_Markmann Outlook and VBA 2 July 19th 06 06:26 AM
Custom CommandBar in Wordmail Editor. Sanjay Add-ins for Outlook 0 May 31st 06 10:11 PM
Custom icon superseded by tracking icon Vaughan Outlook - Using Forms 4 February 24th 06 12:47 PM


All times are GMT +1. The time now is 02:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.