- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I wrote a blog post/tutorial about addin icons to your buttons. You might find it interesting.
http://www.hjalte.nl/tutorials/61-adding-icons-to-your-buttons
.
some important points:
A “standard” size icon is 16 pixels wide and 16 pixels high. A large size icon is 32 wide by 32 high. Inventor is very strict about this. if you get it wrong then it won't work.
the method PictureDispConverter.ToIPictureDisp(...) will only accept objects of the type "System.Drawing.Icon" or "System.Drawing.Bitmap". Therefore this won't work:
PictureDispConverter.ToIPictureDisp("D:\Desktop\Videos\Arturo-Wibawa-Akar-Icon.ico")
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com