Paul,
One more question if I may... I have successfully created and tested this in my dev environment, but now I need to deploy. I have created a setup project, but I am unclear as to how the program knows where to find the app.config file. I copied the app.config file to the application directory, but when I run the program it errors out on finding the connection string.
Can you tell me how to indicate the location of the app.config file for the executable?
TIA
Bob
>>OK. That makes sense but I have tried this and I am still getting an error and I believe it is because the database connection has not been established as I am getting an object null reference.
>>
>
>You need to initialize the framework first. I don't have the code handy here at home but take a look at a MM.NET WinForm app, inside of the startup program - there is some code there that starts up the App object. There is also a help topic about using MM.NET with NUnit, which is basically the same idea.
>
>The code you need to use is something like:
>
>
>public static OakLeaf.MM.Main.mmAppBase App;
>// You may have a different (subclassed) App object.
>App.Factory = new AppBase();
>