Click here to Skip to main content
15,888,454 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Getting really simple simple-binding to work Pin
Nigel Mackay14-Jun-08 5:09
Nigel Mackay14-Jun-08 5:09 
QuestionFiltering a DataGridView bound to a BindingSource Pin
K.L.K12-Jun-08 12:45
K.L.K12-Jun-08 12:45 
Questionhi... Pin
SamRST11-Jun-08 2:42
SamRST11-Jun-08 2:42 
AnswerRe: hi... Pin
Giorgi Dalakishvili11-Jun-08 2:49
mentorGiorgi Dalakishvili11-Jun-08 2:49 
GeneralRe: hi... Pin
SamRST11-Jun-08 2:54
SamRST11-Jun-08 2:54 
GeneralRe: hi... Pin
Giorgi Dalakishvili11-Jun-08 3:16
mentorGiorgi Dalakishvili11-Jun-08 3:16 
QuestionGetting File Path Pin
Ajeet mittal11-Jun-08 2:22
Ajeet mittal11-Jun-08 2:22 
AnswerRe: Getting File Path Pin
Colin Angus Mackay11-Jun-08 2:52
Colin Angus Mackay11-Jun-08 2:52 
Ajeet mittal wrote:
in application root i have a xml file.
how can i get that file path.
i am using to get file path @"..\..\file name,xml"


That is not the application root. That is two levels above the application root.


Ajeet mittal wrote:
when i run it from vs it is working.


That is because the XML file is most likely in your project, not the application root.


Ajeet mittal wrote:
how i will solve my problem


Don't hard code file paths (relative or absolute) in your application.

Put file paths in the config file and find out from there.

Also, if the XML files are supposed to be in the application root folder then you might want to tell Visual Studio that so that it can copy the XML files to that location when you run your application.

To do that, right click the XML file in the Solution Explorer. Select "Properties" in the context menu. In the Properties ensure that "Build Action" is set to "Content" and that "Copy to Output Directory" is set to either "Copy if newer" or "Copy Always"


GeneralRe: Getting File Path Pin
Ajeet mittal11-Jun-08 3:14
Ajeet mittal11-Jun-08 3:14 
GeneralRe: Getting File Path Pin
Ashfield11-Jun-08 4:54
Ashfield11-Jun-08 4:54 
QuestionSpell Checking with C# Pin
RajeswariTholeti11-Jun-08 0:12
RajeswariTholeti11-Jun-08 0:12 
QuestionControl suggestion Pin
N a v a n e e t h10-Jun-08 21:23
N a v a n e e t h10-Jun-08 21:23 
AnswerRe: Control suggestion Pin
dan!sh 10-Jun-08 21:49
professional dan!sh 10-Jun-08 21:49 
Question[Message Deleted] Pin
sampath Jayasinghe10-Jun-08 11:11
sampath Jayasinghe10-Jun-08 11:11 
AnswerRe: Can there be links in Internet explorer history with out visiting those Pin
dan!sh 10-Jun-08 20:26
professional dan!sh 10-Jun-08 20:26 
QuestionDiscarding Keyboard-Events for GUI Pin
J. Holzer10-Jun-08 7:01
J. Holzer10-Jun-08 7:01 
AnswerRe: Discarding Keyboard-Events for GUI Pin
dan!sh 10-Jun-08 20:24
professional dan!sh 10-Jun-08 20:24 
QuestionRe: Discarding Keyboard-Events for GUI Pin
J. Holzer10-Jun-08 21:03
J. Holzer10-Jun-08 21:03 
AnswerRe: Discarding Keyboard-Events for GUI Pin
dan!sh 10-Jun-08 22:13
professional dan!sh 10-Jun-08 22:13 
GeneralRe: Discarding Keyboard-Events for GUI Pin
J. Holzer10-Jun-08 23:22
J. Holzer10-Jun-08 23:22 
QuestionDeploying windows application Pin
mrcsn9-Jun-08 2:58
mrcsn9-Jun-08 2:58 
AnswerRe: Deploying windows application Pin
Christian Graus9-Jun-08 3:25
protectorChristian Graus9-Jun-08 3:25 
GeneralRe: Deploying windows application Pin
mrcsn9-Jun-08 4:07
mrcsn9-Jun-08 4:07 
AnswerRe: Deploying windows application Pin
ilprincipe9-Jun-08 20:41
ilprincipe9-Jun-08 20:41 
QuestionWhich API is used for changing the video settings. Pin
balaji_vbr8-Jun-08 1:24
balaji_vbr8-Jun-08 1:24 

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.