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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

vs.net installed and add-in problem



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 3rd 07, 02:17 PM posted to microsoft.public.outlook.program_addins
Yael
external usenet poster
 
Posts: 23
Default vs.net installed and add-in problem

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


All times are GMT +1. The time now is 08:48 PM.


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.