Thanks again for the very quick replies, and for helping me out and sorry for my bad English and explanations.
No I don't use clickonce. I will do some more explaining:
I have a main project (main application) which can be installed on any computer. This application contains user settings (user.config) which lies in the following directory:
This is the standard location of user settings file, however when the main application changes version a new folder is created, e.g.:
I also have an installer application in my project (the standard VS built-in installer). When I un-install the application I want to access the user.config file and get all the settings from this file (and I will save all the settings in the TEMP directory) so that when I install the application again I am able to retrieve all the settings (access the user.config file and write all the previously saved settings).
Most often the reason for uninstall->install is that I have made a new version of the software and therefor I cannot rely on a static path to the user.config file, I will have to get it programmaticly.
Now, in file Bf.cs I want to call a method which is in file Af.cs. How can I do that? I can't create an object of type Af, because I cannot call the namespace A for some reason. I am getting a message namespace A cannot be found whenever I use: using A.1A.1A1;
The dashes above are there just to show the hierarchy ( indentation ).
If "namespace A" and "namespace B" represent projects, then you have to add reference to project A in project B (right-click project B icon -> "Add reference" -> tab "Projects" select project A and click OK).
Maybe you have a Java background, where there was a strong link between namespace structure and file structure; there is no such thing in .NET
Files reside in folders.
Types reside in namespaces.
You can have (parts of) more than one namespace in a file.
You can have a namespace spread over many files and folders.
The project holds files, and the compiler will locate and deal with all types in them.
And to locate types in some other project, you'd have to add a reference.
I want to make an application in C# that will control(suppose generate click event on a button without clicking on flash file button) flash file and also get action event from flash file when a button is clicked or something is typed on flash file.
Last I checked, Flash doesn't expose any events about anything that's going on while the Flash script is running. That means your code will never know anyone typed in a field in Flash. Nor does it expose a button like Windows does. You can only "click" on a Flash window by sending a crafted MouseDown message, supplying mouse coordinates for the click, to the Flash window.