>What's the best way to handle global variables that are established when the app startes - e.g. user id, company id, connection string, etc in a Windows form or WPF application as the app moves from form to form?
>I've been rolling properties forward from one form to the other and it seems that must be a better way?
>I read somewhere about copying a dictionary and that seemed to make sense.
>Any suggestions?
Do you have an application object? That would be the best way. Basically, all applications should have an application object that contains all the settings like this. Thus, you can refer to it from anywhere in your code. That would be something such as oApp.cMyProperty.