![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |