Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
Questionwhat are the main steps to develop graphic games Pin
gif202013-Sep-11 1:30
gif202013-Sep-11 1:30 
AnswerRe: what are the main steps to develop graphic games Pin
Pete O'Hanlon13-Sep-11 1:50
mvePete O'Hanlon13-Sep-11 1:50 
AnswerRe: what are the main steps to develop graphic games Pin
#realJSOP13-Sep-11 2:23
professional#realJSOP13-Sep-11 2:23 
AnswerRe: what are the main steps to develop graphic games Pin
Richard MacCutchan13-Sep-11 2:48
mveRichard MacCutchan13-Sep-11 2:48 
QuestionHow to get value from a config file of other project Pin
NarVish12-Sep-11 23:07
NarVish12-Sep-11 23:07 
AnswerRe: How to get value from a config file of other project Pin
Daniel.Grondal12-Sep-11 23:35
Daniel.Grondal12-Sep-11 23:35 
GeneralRe: How to get value from a config file of other project Pin
NarVish12-Sep-11 23:44
NarVish12-Sep-11 23:44 
GeneralRe: How to get value from a config file of other project Pin
Daniel.Grondal13-Sep-11 0:09
Daniel.Grondal13-Sep-11 0:09 
I am still not sure this is what you really want to do, but this might get you started:

C#
static void Main(string[] args)
      {
         //
         // Read your "local" App.config file
         //
         string localValue = ConfigurationManager.AppSettings["Akey"];
         Console.WriteLine("Local Value: " + localValue);

         //
         // Read a "remote", i.e. a different App.config file.
         //
         Configuration c = ConfigurationManager.OpenMappedExeConfiguration(
           new ExeConfigurationFileMap() { ExeConfigFilename = @"C:\temp\App.config"},
           ConfigurationUserLevel.None);
         
         string remoteValue = c.AppSettings.Settings["AKey"].Value;
         Console.WriteLine("Remote value: " + remoteValue);

         Console.ReadLine();
      }


This will read your App.config file residing in c:\temp.

The app.config file I used looks as:

XML
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="AKey" value="YaddaYaddaYoo"/>
  </appSettings>
</configuration>

GeneralRe: How to get value from a config file of other project Pin
NarVish13-Sep-11 1:34
NarVish13-Sep-11 1:34 
GeneralRe: How to get value from a config file of other project Pin
Daniel.Grondal13-Sep-11 1:39
Daniel.Grondal13-Sep-11 1:39 
AnswerRe: How to get value from a config file of other project PinPopular
BobJanova13-Sep-11 0:27
BobJanova13-Sep-11 0:27 
GeneralRe: How to get value from a config file of other project Pin
#realJSOP13-Sep-11 2:25
professional#realJSOP13-Sep-11 2:25 
GeneralRe: How to get value from a config file of other project Pin
BobJanova13-Sep-11 2:49
BobJanova13-Sep-11 2:49 
GeneralRe: How to get value from a config file of other project Pin
#realJSOP13-Sep-11 3:23
professional#realJSOP13-Sep-11 3:23 
AnswerRe: How to get value from a config file of other project Pin
#realJSOP13-Sep-11 2:32
professional#realJSOP13-Sep-11 2:32 
AnswerRe: How to get value from a config file of other project Pin
PIEBALDconsult13-Sep-11 2:40
mvePIEBALDconsult13-Sep-11 2:40 
QuestionHow To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
rasoolfazeli12-Sep-11 3:49
rasoolfazeli12-Sep-11 3:49 
AnswerRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak12-Sep-11 4:33
mveDave Kreskowiak12-Sep-11 4:33 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
rasoolfazeli12-Sep-11 4:49
rasoolfazeli12-Sep-11 4:49 
QuestionRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Luc Pattyn12-Sep-11 5:45
sitebuilderLuc Pattyn12-Sep-11 5:45 
AnswerRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak12-Sep-11 6:24
mveDave Kreskowiak12-Sep-11 6:24 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Luc Pattyn12-Sep-11 7:09
sitebuilderLuc Pattyn12-Sep-11 7:09 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak12-Sep-11 7:57
mveDave Kreskowiak12-Sep-11 7:57 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
rasoolfazeli13-Sep-11 20:30
rasoolfazeli13-Sep-11 20:30 
GeneralRe: How To Create A Custom DataGridView With A Row At The Begining Of datagridview Pin
Dave Kreskowiak14-Sep-11 2:00
mveDave Kreskowiak14-Sep-11 2:00 

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.