Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# program that can be closed by arguments Pin
Trollslayer26-Jun-10 5:36
mentorTrollslayer26-Jun-10 5:36 
GeneralRe: c# program that can be closed by arguments Pin
ayandelhi26-Jun-10 5:46
ayandelhi26-Jun-10 5:46 
GeneralRe: c# program that can be closed by arguments Pin
Trollslayer26-Jun-10 5:49
mentorTrollslayer26-Jun-10 5:49 
GeneralRe: c# program that can be closed by arguments Pin
ayandelhi26-Jun-10 21:25
ayandelhi26-Jun-10 21:25 
GeneralRe: c# program that can be closed by arguments Pin
Keith Barrow26-Jun-10 22:24
professionalKeith Barrow26-Jun-10 22:24 
GeneralRe: c# program that can be closed by arguments Pin
PIEBALDconsult26-Jun-10 6:36
mvePIEBALDconsult26-Jun-10 6:36 
AnswerRe: c# program that can be closed by arguments Pin
Ravi Bhavnani27-Jun-10 5:16
professionalRavi Bhavnani27-Jun-10 5:16 
QuestionAccessing other projects "user.config" file Pin
Kaare Tragethon26-Jun-10 4:32
Kaare Tragethon26-Jun-10 4:32 
Hi all!

I have another post about this issue, but I will try to explain myself a bit better this time (sorry for posting 2 times) since the previous post did not get any attention!

Here's the situation:
I have a WinForms project called WinFormsProj1. I have several settings in this project which are saved in a "user.config" file (which lies in "C:\Users\Kåre Tragethon\AppData\Local\WinFormsProj1\WinFormsProj1.exe_Url_********\VersionNo\user.config"). From my main application (WinFormsProj1) I can find the path of the "user.config" by:
Configuration _usrConfigLoc = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);

And then
string _filePath = _userConfigLoc.FilePath;


In the same solution I also have another project called WinFormsProj2. I want to access the user.config file to WinFormsProj1 from my WinFormsProj2 project. How can I find the file path?

I must point out that the path I am looking for is NOT the "C:\Program Files\WinFormsProj1......"!! I am looking for the path of the user.config file which lies in "C:\Users\The User\AppData\Local\AppName\AppName.exe_Url_*********"
AnswerRepost - Answered in QA Pin
DaveyM6926-Jun-10 6:05
professionalDaveyM6926-Jun-10 6:05 
QuestionQuery for multiple occurance in Column Pin
Nikhil Bhivgade26-Jun-10 2:30
professionalNikhil Bhivgade26-Jun-10 2:30 
AnswerRe: Query for multiple occurance in Column Pin
Pete O'Hanlon26-Jun-10 2:33
mvePete O'Hanlon26-Jun-10 2:33 
QuestionHTML Page download in C# Pin
makumazan8426-Jun-10 1:58
makumazan8426-Jun-10 1:58 
GeneralRe: HTML Page download in C# Pin
harold aptroot26-Jun-10 2:24
harold aptroot26-Jun-10 2:24 
GeneralRe: HTML Page download in C# [modified] Pin
makumazan8426-Jun-10 3:48
makumazan8426-Jun-10 3:48 
QuestionProblem on XMLUnSerialize Pin
Tiago Conceição26-Jun-10 1:33
Tiago Conceição26-Jun-10 1:33 
QuestionJoin RTF Pin
Sebastian T Xavier25-Jun-10 19:21
Sebastian T Xavier25-Jun-10 19:21 
AnswerRe: Join RTF Pin
Abhinav S25-Jun-10 22:19
Abhinav S25-Jun-10 22:19 
GeneralRe: Join RTF Pin
Sebastian T Xavier27-Jun-10 18:41
Sebastian T Xavier27-Jun-10 18:41 
AnswerRe: Join RTF Pin
Xmen Real 26-Jun-10 4:32
professional Xmen Real 26-Jun-10 4:32 
QuestionPopulate a Table with Recordset [modified] Pin
ASPnoob25-Jun-10 18:44
ASPnoob25-Jun-10 18:44 
AnswerRe: Populate a Table with Recordset Pin
Roger Wright25-Jun-10 19:32
professionalRoger Wright25-Jun-10 19:32 
AnswerRe: Populate a Table with Recordset Pin
Richard MacCutchan25-Jun-10 22:23
mveRichard MacCutchan25-Jun-10 22:23 
GeneralRe: Populate a Table with Recordset Pin
Pete O'Hanlon26-Jun-10 2:28
mvePete O'Hanlon26-Jun-10 2:28 
GeneralRe: Populate a Table with Recordset Pin
Richard MacCutchan26-Jun-10 2:59
mveRichard MacCutchan26-Jun-10 2:59 
Questioni need a very simple chat application Pin
Nikhil Bhivgade25-Jun-10 2:27
professionalNikhil Bhivgade25-Jun-10 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.