Click here to Skip to main content
15,560,232 members
Home / Discussions / C#
   

C#

 
AnswerRe: IF Else statement on background colour of label. Pin
OriginalGriff30-Oct-20 3:50
mveOriginalGriff30-Oct-20 3:50 
GeneralRe: IF Else statement on background colour of label. Pin
Member 1497767230-Oct-20 4:01
Member 1497767230-Oct-20 4:01 
QuestionAdd treasure to my maze game Pin
Member 1497767229-Oct-20 5:10
Member 1497767229-Oct-20 5:10 
AnswerRe: Add treasure to my maze game Pin
OriginalGriff29-Oct-20 5:20
mveOriginalGriff29-Oct-20 5:20 
AnswerRe: Add treasure to my maze game Pin
Gerry Schmitz29-Oct-20 6:14
mveGerry Schmitz29-Oct-20 6:14 
QuestionIs it possible to save DataGridView contents to a file with a specific suffix which can be loaded just by my own application? Pin
Alex Dunlop28-Oct-20 9:09
Alex Dunlop28-Oct-20 9:09 
AnswerRe: Is it possible to save DataGridView contents to a file with a specific suffix which can be loaded just by my own application? Pin
Dave Kreskowiak28-Oct-20 10:21
mveDave Kreskowiak28-Oct-20 10:21 
AnswerRe: Is it possible to save DataGridView contents to a file with a specific suffix which can be loaded just by my own application? Pin
OriginalGriff28-Oct-20 10:27
mveOriginalGriff28-Oct-20 10:27 
Basically, it's not possible: you can't "restrict" which apps can open a file (if you could, MS would use it for Word, Excel, and PowerPoint files for sure). Any app can open any file.

But ... they may not understand the content they look at - and that may be enough for you. If you encrypt your data before you write it to the file, and decrypt it when you read it, the it will certainly be harder for other apps to use.

The problem is that no matter how secure you need your data to be, remember that any app can read any file - and that does include both your data file and your application EXE file. So since your app would need to know the decryption key in order to read your encrypted data, it's a relatively simple matter to get the key from your EXE and then use it on the data files.

It's up to you to decide how "unreadable" you need your data to be and how much work you are prepared to put into it. Be aware that with any security intensive development, unless you research really well, fully understand the code you are writing / using, you can easily make your data less secure than plain text, rather than more!
"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!

AnswerRe: Is it possible to save DataGridView contents to a file with a specific suffix which can be loaded just by my own application? Pin
Gerry Schmitz28-Oct-20 19:31
mveGerry Schmitz28-Oct-20 19:31 
QuestionMouse enter to new form Pin
Member 1497767228-Oct-20 6:01
Member 1497767228-Oct-20 6:01 
AnswerRe: Mouse enter to new form Pin
Richard MacCutchan28-Oct-20 6:44
mveRichard MacCutchan28-Oct-20 6:44 
GeneralRe: Mouse enter to new form Pin
Member 1497767228-Oct-20 6:46
Member 1497767228-Oct-20 6:46 
GeneralRe: Mouse enter to new form Pin
OriginalGriff28-Oct-20 6:57
mveOriginalGriff28-Oct-20 6:57 
QuestionC# win forms .net core, user control, array on a dialog. Pin
jkirkerx27-Oct-20 14:43
professionaljkirkerx27-Oct-20 14:43 
AnswerRe: C# win forms .net core, user control, array on a dialog. Pin
Gerry Schmitz27-Oct-20 20:20
mveGerry Schmitz27-Oct-20 20:20 
AnswerRe: C# win forms .net core, user control, array on a dialog. Pin
BillWoodruff28-Oct-20 0:05
professionalBillWoodruff28-Oct-20 0:05 
GeneralMessage Closed Pin
28-Oct-20 0:44
Member 1332584628-Oct-20 0:44 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
OriginalGriff28-Oct-20 1:03
mveOriginalGriff28-Oct-20 1:03 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
jkirkerx28-Oct-20 5:32
professionaljkirkerx28-Oct-20 5:32 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
OriginalGriff28-Oct-20 5:40
mveOriginalGriff28-Oct-20 5:40 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
jkirkerx28-Oct-20 5:49
professionaljkirkerx28-Oct-20 5:49 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
OriginalGriff28-Oct-20 6:20
mveOriginalGriff28-Oct-20 6:20 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
jkirkerx28-Oct-20 7:19
professionaljkirkerx28-Oct-20 7:19 
GeneralRe: C# win forms .net core, user control, array on a dialog. Pin
OriginalGriff28-Oct-20 7:35
mveOriginalGriff28-Oct-20 7:35 
AnswerI think I have it now Pin
jkirkerx28-Oct-20 6:16
professionaljkirkerx28-Oct-20 6:16 

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.