Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Report Progress from a class with a backgroundWorker Pin
Ian Shlasko14-Feb-11 12:11
Ian Shlasko14-Feb-11 12:11 
GeneralRe: Report Progress from a class with a backgroundWorker Pin
DaveyM6914-Feb-11 11:24
professionalDaveyM6914-Feb-11 11:24 
QuestionSet a picture transparently in the foreground Pin
Mschauder14-Feb-11 2:21
Mschauder14-Feb-11 2:21 
AnswerRe: Set a picture transparently in the foreground Pin
musefan14-Feb-11 3:03
musefan14-Feb-11 3:03 
GeneralRe: Set a picture transparently in the foreground Pin
Mschauder14-Feb-11 3:15
Mschauder14-Feb-11 3:15 
GeneralRe: Set a picture transparently in the foreground Pin
musefan14-Feb-11 3:42
musefan14-Feb-11 3:42 
GeneralRe: Set a picture transparently in the foreground Pin
Mschauder14-Feb-11 22:08
Mschauder14-Feb-11 22:08 
Questiondirectory path Pin
arkiboys13-Feb-11 22:12
arkiboys13-Feb-11 22:12 
I am using a windows service project i.e. winService.
Inside this project, I have placed an xml file.
This winService project, calls a class library project i.e. classLibrary.
Inside the classlibrary, there is a class i.e. myclass.cs which has to get the path of the xml file which as mentioned above is inside the winservice project and it is called test.xml

I am using the following code in the class myclass.cs which is inside the classlibrary project to get the path of the xml file:

string strPath = AppDomain.CurrentDomain.BaseDirectory + "test.xml";


Question:
The code above returns the path of the winservice\bin\debug
Is it correct to place the test.xml inside the bin\debug folder?
or Should the test.xml file be placed on the root of the winservice project instead?
and is the code ok?
Thanks
AnswerRe: directory path Pin
Pete O'Hanlon13-Feb-11 22:17
mvePete O'Hanlon13-Feb-11 22:17 
GeneralRe: directory path Pin
arkiboys13-Feb-11 22:23
arkiboys13-Feb-11 22:23 
GeneralRe: directory path Pin
Pete O'Hanlon13-Feb-11 22:45
mvePete O'Hanlon13-Feb-11 22:45 
GeneralRe: directory path Pin
arkiboys13-Feb-11 23:22
arkiboys13-Feb-11 23:22 
AnswerRe: directory path Pin
Dalek Dave14-Feb-11 0:14
professionalDalek Dave14-Feb-11 0:14 
AnswerRe: directory path Pin
GenJerDan14-Feb-11 0:29
GenJerDan14-Feb-11 0:29 
GeneralRe: directory path Pin
Pete O'Hanlon14-Feb-11 0:34
mvePete O'Hanlon14-Feb-11 0:34 
AnswerRe: directory path Pin
Luc Pattyn14-Feb-11 1:01
sitebuilderLuc Pattyn14-Feb-11 1:01 
AnswerRe: directory path Pin
PIEBALDconsult14-Feb-11 2:00
mvePIEBALDconsult14-Feb-11 2:00 
QuestionCon open wait Pin
Ajay Kale New13-Feb-11 22:01
Ajay Kale New13-Feb-11 22:01 
AnswerRe: Con open wait Pin
Pete O'Hanlon13-Feb-11 22:13
mvePete O'Hanlon13-Feb-11 22:13 
AnswerRe: Con open wait Pin
Luc Pattyn14-Feb-11 0:52
sitebuilderLuc Pattyn14-Feb-11 0:52 
AnswerRe: Con open wait Pin
PIEBALDconsult14-Feb-11 1:42
mvePIEBALDconsult14-Feb-11 1:42 
QuestionUsing DotNetNuke in c# Pin
sarang_k13-Feb-11 20:08
sarang_k13-Feb-11 20:08 
AnswerRe: Using DotNetNuke in c# Pin
Richard MacCutchan13-Feb-11 22:35
mveRichard MacCutchan13-Feb-11 22:35 
Questionprogress bar while switching to new page Pin
Mugdha_Aditya13-Feb-11 18:26
Mugdha_Aditya13-Feb-11 18:26 
AnswerRe: progress bar while switching to new page Pin
Richard MacCutchan13-Feb-11 22:34
mveRichard MacCutchan13-Feb-11 22:34 

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.