Click here to Skip to main content
15,920,030 members
Home / Discussions / C#
   

C#

 
AnswerRe: Ampersand Char Pin
malharone13-Feb-06 3:05
malharone13-Feb-06 3:05 
JokeRe: Ampersand Char Pin
Paradox2213-Feb-06 13:28
Paradox2213-Feb-06 13:28 
QuestionJoystick value Pin
Danny198212-Feb-06 13:15
Danny198212-Feb-06 13:15 
AnswerRe: Joystick value Pin
Ravi Bhavnani12-Feb-06 13:23
professionalRavi Bhavnani12-Feb-06 13:23 
GeneralRe: Joystick value Pin
Danny198212-Feb-06 23:10
Danny198212-Feb-06 23:10 
GeneralRe: Joystick value Pin
Ravi Bhavnani13-Feb-06 1:51
professionalRavi Bhavnani13-Feb-06 1:51 
GeneralRe: Joystick value Pin
Danny198213-Feb-06 12:27
Danny198213-Feb-06 12:27 
QuestionOpening the Shell File/Folder Properties Dialog Pin
DigitalKing12-Feb-06 12:53
DigitalKing12-Feb-06 12:53 
AnswerRe: Opening the Shell File/Folder Properties Dialog Pin
Ravi Bhavnani12-Feb-06 13:12
professionalRavi Bhavnani12-Feb-06 13:12 
GeneralRe: Opening the Shell File/Folder Properties Dialog Pin
DigitalKing12-Feb-06 13:39
DigitalKing12-Feb-06 13:39 
QuestionProblem for change datagrid property in form1 from other forms Pin
hdv21212-Feb-06 12:45
hdv21212-Feb-06 12:45 
Questionhow to use app.config file ? Pin
hdv21212-Feb-06 11:30
hdv21212-Feb-06 11:30 
AnswerRe: how to use app.config file ? Pin
Ravi Bhavnani12-Feb-06 12:14
professionalRavi Bhavnani12-Feb-06 12:14 
GeneralRe: how to use app.config file ? Pin
hdv21212-Feb-06 13:11
hdv21212-Feb-06 13:11 
GeneralRe: how to use app.config file ? Pin
Ravi Bhavnani12-Feb-06 13:18
professionalRavi Bhavnani12-Feb-06 13:18 
GeneralRe: how to use app.config file ? Pin
J4amieC12-Feb-06 21:20
J4amieC12-Feb-06 21:20 
QuestionPassing command line arguments to the main method Pin
kourvoisier12-Feb-06 9:33
kourvoisier12-Feb-06 9:33 
AnswerRe: Passing command line arguments to the main method Pin
User 665812-Feb-06 9:41
User 665812-Feb-06 9:41 
GeneralRe: Passing command line arguments to the main method Pin
Wayne Phipps12-Feb-06 10:07
Wayne Phipps12-Feb-06 10:07 
GeneralRe: Passing command line arguments to the main method Pin
kourvoisier12-Feb-06 10:44
kourvoisier12-Feb-06 10:44 
QuestionTraceSwitch doesn't get settings from App.config Pin
Optimus Chaos12-Feb-06 4:31
Optimus Chaos12-Feb-06 4:31 
QuestionHow To Load App Setting From Registry ? Pin
hdv21212-Feb-06 1:55
hdv21212-Feb-06 1:55 
AnswerRe: How To Load App Setting From Registry ? Pin
Wayne Phipps12-Feb-06 2:09
Wayne Phipps12-Feb-06 2:09 
GeneralRe: How To Load App Setting From Registry ? Pin
hdv21212-Feb-06 2:25
hdv21212-Feb-06 2:25 
GeneralRe: How To Load App Setting From Registry ? Pin
Wayne Phipps12-Feb-06 3:27
Wayne Phipps12-Feb-06 3:27 
OK, the pointer should have been enough, but this is a sample from your code example:

To write color to the registry:
RegistryKey regkey = Registry.CurrentUser.CreateSubKey(@"SST\Full_SaveSetting\Setting");<br />
			regkey.SetValue("Datagrid_AlternatingBackColor", dataGrid1.AlternatingBackColor.ToArgb() );


To read color from the registry:
RegistryKey regkey = Registry.CurrentUser.CreateSubKey(@"SST\Full_SaveSetting\Setting");<br />
			dataGrid1.AlternatingBackColor = System.Drawing.Color.FromArgb( (int)regkey.GetValue("Datagrid_AlternatingBackColor") );


Personally, I think that using the registry to store this kind of information is a bad idea, just think, if the user wants to load the app on another machine, these preferences would have to be re-configured on the new machine. There are other ways EG using the app.config file etc.



Regards

Wayne Phipps
____________

Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog

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.