15,895,777 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Maximys (Top 8 by date)
Maximys
21-Aug-12 2:10am
View
Could you explain what do you mean?
Maximys
20-Aug-12 22:54pm
View
Sergey, I have read you link more carefully. Now I try to execute next code:
String key1="key1";
String value1="value1";
MonoDevelop.Core.PropertyService.Set(key1, value1);
Console.WriteLine(MonoDevelop.Core.PropertyService.Get<string>(key1));
But I have next exception:
Missing method Set in assembly /home/Maximys/Param2/Param2/bin/Debug/Param2.exe, type MonoDevelop.Core.PropertyService
Maximys
20-Aug-12 22:37pm
View
Config
Maximys
20-Aug-12 22:36pm
View
You are right. This method is really unworkable. Could you help me find another decision?
Maximys
20-Aug-12 20:15pm
View
I have found decision. I should add to project Environment Variable and use it by Environment class.Thank you for help
Maximys
20-Aug-12 19:44pm
View
After I had worked with Mono, I wrote the following code:
//
String configFileName="TestsaveParameters.exe.config";
string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
string configFile = System.IO.Path.Combine(appPath, configFileName);
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap();
configFileMap.ExeConfigFilename = configFile;
System.Configuration.Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);
//
label1.Text=ConfigurationManager.AppSettings["key1"];
label4.Text=config.AppSettings.Settings["key1"].Value;
//----------------------------------------------------
//String configFileName="TestsaveParameters.exe.config";
/*string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
string configFile = System.IO.Path.Combine(appPath, configFileName);
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap();
configFileMap.ExeConfigFilename = configFile;
System.Configuration.Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configFileMap, ConfigurationUserLevel.None);*/
config.AppSettings.Settings["key1"].Value = "New Value";
config.Save();
//====================================================
label2.Text=ConfigurationManager.AppSettings["key1"];
label3.Text=config.AppSettings.Settings["key1"].Value;
It's working right. But I don't want to create a separate configuration file in the directory, because there may be a login / password, which can be stolen by inappropriate user. I would like to attach a file to the user's preferences exe file. How can I do such a thing?
Maximys
20-Aug-12 6:20am
View
No, I'm asking about my application settings
Maximys
20-Aug-12 3:39am
View
Many thanks for your response. This link about User Profiles of MonoDevelop. But I haven't found anything about how to save user's settings in my project(program) here. Could you please explain me this question. I need anything like class Settings in .NET Framework
Show More