No reason you can't reference the system.windows.forms namespace from within a dll. It isn't available by default, but you can add it as a reference to the class library project and then use it like any other library.