Welcome to Microsoft .NET Framework 3.0 Community (NetFx3)

The .NET Framework is Microsoft's managed code programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes.

Learn More...

WF Community Bloggers

Thursday, May 15, 2008 - Posts

  • Microsoft Netherlands Community DevCast

    The Dutch Microsoft office has posted the first of the Community DevCast we recorded. The host is Alex Thissen who actually does most of the work as he also edits the screencasts so don't forget to thank him next week when you run into him at the Dutch DevDays . I am happy to say that amongst the first 6 screencasts released are no less that 4 I did with Alex about Workflow Foundation. And there are more to come so stay tuned. The other two are about C# and done by Dennis Vroegop again with Alex as the host. You can find the Community DevCast here . Keep in mind they are for a Dutch audience so they where recorded in Dutch! Enjoy! www.TheProblemSolver.nl http://wiki.WindowsWorkflowFoundation.eu Read More...
  • Changing the default icon of a custom workflow activity

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

Copyright © 2007 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us