![]() |
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 created a com add-in for outlook 2003 in vs.net 2003 c#. Only if I had an Icon to the button of the outlook commandBtnBar I have this problem: (if I don't had this class for the button, I don't have this problem at all). What is strange: If I have vs.net installed in a computer, everything running OK! If I don't have vs.net instaled, I get this problem. The problem:****************************** I don't get errors, but I can't see the button add-in! But the code of the add-in not arrive to this part of the code OnStartupComplete() MessageBox.Show("OnStartupComplete()"); If I remove AxHost.GetIPictureDispFromPicture(image), I don;t have the problem and I can see my add-in button (without icon). **************************************** public class MatarotHost : AxHost { public MatarotHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ } public static IPictureDisp GetIPictureDispFromPicture ( Image image ) { return AxHost.GetIPictureDispFromPicture(image) as IPictureDisp; } } I'm calling this method like: this.toolbarBtn.Style = MsoButtonStyle.msoButtonIconAndCaption; string ns = this.GetType().Namespace; Assembly CurrentAssembly = this.GetType().Assembly; System.IO.Stream imgStreamPic = CurrentAssembly.GetManifestResourceStream(ns+"." + "matarotqm.bmp"); stdole.IPictureDisp Pic = MatarotHost.GetIPictureDispFromPicture(Image.FromS tream(imgStreamPic)); this.toolbarBtnWeb.Picture = Pic; Thanking you in anticipation. Yael. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do you get OE6 on new XP system with IE7 pre-installed? | Sportsluvr | Outlook Express | 6 | February 12th 07 02:32 PM |
has not been installed | Wiley C | Outlook - Installation | 2 | February 6th 07 12:56 AM |
Not too sure why not installed... | Carmen Gauvin-O'Donnell | Outlook - Installation | 0 | February 2nd 07 06:07 PM |
OE6 crashing after XP SP2 installed | Simple Simon | Outlook Express | 31 | July 14th 06 05:18 PM |
Can OE be installed in AOL | Bob | Outlook Express | 1 | March 8th 06 09:17 PM |