Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Add-ins
What I'm missing in vs.net 2003?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Yael, post: 6922155"] Sorry, My problem is that I don't see my icon bmp in a butoon add-in : this.toolbarBtn2.Style = MsoButtonStyle.msoButtonIconAndCaption; // set pic to this button2 string ns = this.GetType().Namespace; Assembly CurrentAssembly = this.GetType().Assembly; System.IO.Stream imgStreamPic = CurrentAssembly.GetManifestResourceStream(ns+"." + "matarotqm.bmp"); stdole.IPictureDisp Pic = MatarotHost.IPictureDisp(Image.FromStream(imgStreamPic)); this.toolbarBtn2.Picture = Pic; using System; using System.Drawing; using System.Windows.Forms; using stdole; namespace MatarotToolbar { /// <summary> /// Summary description for MatarotHost. /// </summary> public class MatarotHost : AxHost { public MatarotHost() : base( "3E9806D0-18A4-47EA-98A0-69C71BEC2AD9"){ } public static stdole.IPictureDisp IPictureDisp(System.Drawing.Image Image) { return ((stdole.IPictureDisp)(AxHost.GetIPictureDispFromPicture(Image))); } } } [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Add-ins
What I'm missing in vs.net 2003?
Top