OK, thanks Kevin. I think I must have not set things up correctly, as I was getting an "Invalid Cast" error at runtime when I cast return as the subclass. It's working now - I've been following the section "The Factory Object" out of the developer's guide and I guess incorrectly implemented the step 4, "Override the App.CreateFactory Method."