By default every custom workflow activity shows the same icon. And using an icon that help understand what the activity actually does makes life so much easier for the user of your activity. And remember he is a developer so some day he might just return the favor The default looks like this. So changing the icon isn't hard there are just a few steps that might catch you if you aren't careful. This is what my demo project looks like: Add the new image to the project. In my case I added a folder named Images and dropped the PushpinHS.png in there. This PushpinHS.png can be found in the standard VS2008ImageLibrary.zip located in C:\Program Files\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary\1033. Change the build action for PushpinHS.png to Embedded Resource. Next go to the Activity1.cs file and add the ToolboxBitmap attribute to the Activity1 class. We need to specify two parameters, the first is a type in which assembly the PushpinHS.png is located and the second is the name of the resource to use. These two are related because the resource name us relative to the namespace of the type used. [ToolboxBitmap(typeof(Activity1), "Images.PushpinHS.png")] public partial class Activity1: SequenceActivity { } And now we have a nice new icon in the activity like this: One problem is that the resource name is actually relative to the class specified. Using relfector makes it easy to see all the actual names, including the namespace used. So what to do if your
Read More...