If you design your forms to be loaded from a class library how do you set up the data environment and instantiate it. I can see that a dataenvironment class can be created non-visualy but i am not sure how configure it and load it in the form. Thanks for any hints Sam Trenchard