ProcessBook .NET Add-In Custom Toolbar Icons

Discussion created by CalebH on Sep 10, 2009
Latest reply on Mar 27, 2013 by DavidMFairchild

Hello - I have a couple questions about how to implement custom icons for ProcessBook .NET Add-In Toolbar buttons


1) Is it possible to include the images in a .dll/resouce and reference them in a manner like this:    or


2) Is it possible to use images that are partially transparent?


The code below works for an image in some folder but does not support transparency (bitmap only it seems, and the image isn't hidden in a .dll, etc)


e As PBCommandBarButton = CType(m_pbControl, PBObjLib.PBCommandBarButton)
e.Style = pbButtonStyle.pbButtonIcon


I've been trying to figure out if using "e.LoadFaceResource(nAppInstance As Integer, nBmpResourceId As Integer)" is the way to go but I don't know what the correct values are for the arguments.