Click here to Skip to main content
15,501,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Battleship gameboard & random assignment Pin
Otto_W30-Oct-22 20:30
MemberOtto_W30-Oct-22 20:30 
GeneralRe: C# Battleship gameboard & random assignment Pin
Otto_W15-Nov-22 15:46
MemberOtto_W15-Nov-22 15:46 
AnswerRe: C# Battleship gameboard & random assignment Pin
Gerry Schmitz6-Sep-22 6:06
mveGerry Schmitz6-Sep-22 6:06 
QuestionChanging Windows registry with C# Pin
Ismael_199931-Aug-22 13:50
MemberIsmael_199931-Aug-22 13:50 
AnswerRe: Changing Windows registry with C# Pin
Dave Kreskowiak31-Aug-22 15:37
mveDave Kreskowiak31-Aug-22 15:37 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19993-Sep-22 5:18
MemberIsmael_19993-Sep-22 5:18 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak3-Sep-22 10:51
mveDave Kreskowiak3-Sep-22 10:51 
AnswerRe: Changing Windows registry with C# Pin
OriginalGriff31-Aug-22 19:51
mveOriginalGriff31-Aug-22 19:51 
To add to what Dave has - rightly - said ...
The problem is due to a layer of security added after the registry became too bloated and vulnerable: it was filled with rubbish, and fully available to code to view or modify.

In more modern OSes (think Vista and later) it became much harder to access the registry, and Admin access was required for most of the content. This included the entire LocalMachine branch. Do not expect it to get easier to access, if anything it will get harder as storing app settings there is now discouraged to reduce the bloat.

So unless you have a very, very good reason to use the registry you shouldn't do it: use an app config file, or store data in a User data folder instead. It's easier to do, and a lot more future proof!
This may help: SWhere should I store my data?[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Changing Windows registry with C# Pin
Ismael_19993-Sep-22 5:20
MemberIsmael_19993-Sep-22 5:20 
GeneralRe: Changing Windows registry with C# Pin
OriginalGriff3-Sep-22 5:43
mveOriginalGriff3-Sep-22 5:43 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19994-Sep-22 12:41
MemberIsmael_19994-Sep-22 12:41 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak4-Sep-22 14:12
mveDave Kreskowiak4-Sep-22 14:12 
GeneralRe: Changing Windows registry with C# Pin
OriginalGriff4-Sep-22 20:19
mveOriginalGriff4-Sep-22 20:19 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak5-Sep-22 4:43
mveDave Kreskowiak5-Sep-22 4:43 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19996-Sep-22 5:10
MemberIsmael_19996-Sep-22 5:10 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak6-Sep-22 5:30
mveDave Kreskowiak6-Sep-22 5:30 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19996-Sep-22 5:47
MemberIsmael_19996-Sep-22 5:47 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak6-Sep-22 5:48
mveDave Kreskowiak6-Sep-22 5:48 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19996-Sep-22 11:29
MemberIsmael_19996-Sep-22 11:29 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak6-Sep-22 11:31
mveDave Kreskowiak6-Sep-22 11:31 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19998-Sep-22 14:00
MemberIsmael_19998-Sep-22 14:00 
GeneralRe: Changing Windows registry with C# Pin
Dave Kreskowiak8-Sep-22 15:02
mveDave Kreskowiak8-Sep-22 15:02 
AnswerRe: Changing Windows registry with C# Pin
Eddy Vluggen6-Sep-22 6:17
professionalEddy Vluggen6-Sep-22 6:17 
GeneralRe: Changing Windows registry with C# Pin
Ismael_19996-Sep-22 11:22
MemberIsmael_19996-Sep-22 11:22 
GeneralRe: Changing Windows registry with C# Pin
Eddy Vluggen6-Sep-22 11:47
professionalEddy Vluggen6-Sep-22 11:47 

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.