Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C#] - (Help) : Saving Settings

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
jdm
Advanced Cheater
Reputation: 0

Joined: 19 Sep 2008
Posts: 88

PostPosted: Thu Feb 05, 2009 9:11 pm    Post subject: [C#] - (Help) : Saving Settings Reply with quote

Alright to start out I'm a novice C# programmer and I was wondering if someone could help me figure out how to save settings from the settings.settings file and then loading them again.
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Thu Feb 05, 2009 9:16 pm    Post subject: CREATE a PROJECT IT DOes it automaticly o0 Reply with quote

Very Happy
as stated above...
Very Happy

_________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you.
Back to top
View user's profile Send private message MSN Messenger
jdm
Advanced Cheater
Reputation: 0

Joined: 19 Sep 2008
Posts: 88

PostPosted: Thu Feb 05, 2009 9:28 pm    Post subject: Re: CREATE a PROJECT IT DOes it automaticly o0 Reply with quote

BanMe wrote:
Very Happy
as stated above...
Very Happy


Piss off dickweed
Back to top
View user's profile Send private message
BanMe
Master Cheater
Reputation: 0

Joined: 29 Nov 2005
Posts: 375
Location: Farmington NH, USA

PostPosted: Thu Feb 05, 2009 9:41 pm    Post subject: Reply with quote

I meant no offense.
I just stating that this option is already available.

i suppose this is what u seek the quick answer the "solution" calm down
here it is..

Save Settings..
Code:

// C#
Properties.Settings.Default.Save();


Access Properties directly and reassign
Code:

Properties.Settings.Default.myColor = Color.AliceBlue;


Read a current property
Code:

this.Backcolor = Properties.Settings.Default.myColor;




Quote:

Windows Forms Programming
How To: Create a New Setting at Design Time

You can create a new setting at design time by using the Settings designer. The Settings designer is a grid-style interface that allows you to create new settings and specify properties for those settings. You must specify Name, Value, Type and Scope for your new settings. Once a setting is created, it is accessible in code.

To create a new setting at design time in C#
In Solution Explorer, expand the Properties node of your project.

Double-click the .settings file in which you want to add a new setting. The default name for this file is Settings.settings.

In the Settings designer, set the Name, Value, Type, and Scope for your setting. Each row represents a single setting.

To create a new setting at design time in Visual Basic
In Solution Explorer, right-click your project node and choose Properties.

In the Properties page, select the Settings tab.

In the Settings designer, set the Name, Value, Type, and Scope for your setting. Each row represents a single setting.
courtiecies of microsoft...

regards BanMe

_________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites