Superfly1611
Regular
Hey all,
I'm trying to develop a fairly simple windows form application and i'm having a few problems (stemming from the fact that i've go no idea what i'm doing as i'm a web developer).
1 I create a new folder inside my project in Visual Studio and put files (such as an Access Database or config files) inside this folder. But when I build this project the newly compiled exe in the new directory doesn't automatically copy these files accross.
Now I can obviously do it manually but I find it hard to believe there isn't a way to get visual studio to do this for you at compile time?
2 Where do I store variables (such as data connection strings) so that they can be accessed from absolutely anywhere in the application?
It's easy in web apps because you store it in application state. I know I could do things like storing in the registry etc but thats overkill for what I want.
A few years back when I played with VB6 I used to store such variables in a module.
Many Thanks
I'm trying to develop a fairly simple windows form application and i'm having a few problems (stemming from the fact that i've go no idea what i'm doing as i'm a web developer).
1 I create a new folder inside my project in Visual Studio and put files (such as an Access Database or config files) inside this folder. But when I build this project the newly compiled exe in the new directory doesn't automatically copy these files accross.
Now I can obviously do it manually but I find it hard to believe there isn't a way to get visual studio to do this for you at compile time?
2 Where do I store variables (such as data connection strings) so that they can be accessed from absolutely anywhere in the application?
It's easy in web apps because you store it in application state. I know I could do things like storing in the registry etc but thats overkill for what I want.
A few years back when I played with VB6 I used to store such variables in a module.
Many Thanks