Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Object events through the ide Pin
RB@Emphasys5-Jun-03 9:48
RB@Emphasys5-Jun-03 9:48 
GeneralMaster-Detail datagrid Pin
Madhuri Mittal5-Jun-03 6:38
Madhuri Mittal5-Jun-03 6:38 
GeneralRe: Master-Detail datagrid Pin
Paresh Gheewala5-Jun-03 9:19
Paresh Gheewala5-Jun-03 9:19 
GeneralHosting an IE window in a form Pin
eggie55-Jun-03 4:54
eggie55-Jun-03 4:54 
GeneralRe: Hosting an IE window in a form Pin
dynamic5-Jun-03 5:15
dynamic5-Jun-03 5:15 
GeneralRe: Hosting an IE window in a form Pin
eggie55-Jun-03 10:40
eggie55-Jun-03 10:40 
GeneralIncluding Files in Projects and FilePaths Pin
STW5-Jun-03 3:02
STW5-Jun-03 3:02 
GeneralRe: Including Files in Projects and FilePaths Pin
Kant5-Jun-03 8:22
Kant5-Jun-03 8:22 
STW wrote:
In a class I open this file with the following FilePath:"..\\..\\XmlFile.xml".

Instead of using that way, why don't you the keep file in the bin\debug.
The better way is select the file via OpenFileDialog.

Use the FileInfo class so that you can check that file exist or not.

FileInfo fileInfo = new FileInfo(fileName);<br />
if(fileInfo.Exists)<br />
{<br />
..<br />
}


STW wrote:
But what is if I want to install my project? Then the Xml File will be in the application folder but in my class the folder stays "..\\..\\XmlFile.xml" so the file won't be found.

If you have already got the Deployment project in your solution. Then just add the XML file to that project and make sure that the 'Folder' property of that file is set to "Application Folder". (Properties window)


Never take a problem to your boss unless you have a solution.

This signature was created by "Code Project Quoter".
GeneralToolbars, Toolbars, Toolbars Pin
MrEyes5-Jun-03 1:51
MrEyes5-Jun-03 1:51 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
J. Dunlap5-Jun-03 7:52
J. Dunlap5-Jun-03 7:52 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
xxrl5-Jun-03 15:55
xxrl5-Jun-03 15:55 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
J. Dunlap5-Jun-03 16:00
J. Dunlap5-Jun-03 16:00 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
MrEyes5-Jun-03 23:38
MrEyes5-Jun-03 23:38 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
MrEyes6-Jun-03 0:06
MrEyes6-Jun-03 0:06 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
James T. Johnson6-Jun-03 1:17
James T. Johnson6-Jun-03 1:17 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
MrEyes6-Jun-03 1:22
MrEyes6-Jun-03 1:22 
GeneralRe: Toolbars, Toolbars, Toolbars Pin
romeok1-Sep-03 15:15
romeok1-Sep-03 15:15 
GeneralMeasureString returns incorrect sizeF! Pin
FruitBatInShades5-Jun-03 0:46
FruitBatInShades5-Jun-03 0:46 
GeneralRe: MeasureString returns incorrect sizeF! Pin
KingTermite5-Jun-03 1:48
KingTermite5-Jun-03 1:48 
GeneralRe: MeasureString returns incorrect sizeF! Pin
FruitBatInShades5-Jun-03 8:11
FruitBatInShades5-Jun-03 8:11 
GeneralRe: MeasureString returns incorrect sizeF! Pin
FruitBatInShades5-Jun-03 11:05
FruitBatInShades5-Jun-03 11:05 
GeneralRe: MeasureString returns incorrect sizeF! Pin
FruitBatInShades6-Jun-03 3:42
FruitBatInShades6-Jun-03 3:42 
Generalunicode searching Pin
grv5754-Jun-03 23:00
grv5754-Jun-03 23:00 
Generalstreaming file over webservice Pin
SimonS4-Jun-03 22:55
SimonS4-Jun-03 22:55 
GeneralRe: streaming file over webservice Pin
SimonS4-Jun-03 23:58
SimonS4-Jun-03 23:58 

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.