Click here to Skip to main content
15,888,082 members
Home / Discussions / C#
   

C#

 
GeneralRe: Shortcut key for a button ? Pin
Mohammad Dayyan13-Apr-09 1:24
Mohammad Dayyan13-Apr-09 1:24 
QuestionDisplaying MessageBox from a Console application Pin
Rajdeep.NET is BACK12-Apr-09 0:17
Rajdeep.NET is BACK12-Apr-09 0:17 
AnswerRe: Displaying MessageBox from a Console application Pin
Eddy Vluggen12-Apr-09 0:30
professionalEddy Vluggen12-Apr-09 0:30 
QuestionLast modified time in file. Pin
Karmendra Suthar11-Apr-09 23:27
Karmendra Suthar11-Apr-09 23:27 
AnswerRe: Last modified time in file. Pin
Karmendra Suthar11-Apr-09 23:28
Karmendra Suthar11-Apr-09 23:28 
GeneralRe: Last modified time in file. Pin
PIEBALDconsult12-Apr-09 4:23
mvePIEBALDconsult12-Apr-09 4:23 
GeneralRe: Last modified time in file. Pin
Karmendra Suthar12-Apr-09 7:01
Karmendra Suthar12-Apr-09 7:01 
GeneralRe: Last modified time in file. Pin
PIEBALDconsult12-Apr-09 7:20
mvePIEBALDconsult12-Apr-09 7:20 
KSuthar wrote:
Can you tell me other ways to prevent it?


No, I can't think of a way to be sure. And I don't think it's a reasonable goal.

If the user wants to modify the file outside the application, why not allow it?

It seems to me that the application needs to:

0) Check that the file exists
1) Load it into an XmlDocument
2) Check the schema
3) Read the value and confirm that's it either True or False
4) If anything in that process fails, then use the default, otherwise you got a valid value, why do you care how it got there?


You might also consider a binary file rather than an XML (text) file, to make modification more difficult.
QuestionNAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching PinPopular
softwarejaeger11-Apr-09 22:41
softwarejaeger11-Apr-09 22:41 
AnswerRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot12-Apr-09 7:46
harold aptroot12-Apr-09 7:46 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger12-Apr-09 22:20
softwarejaeger12-Apr-09 22:20 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot13-Apr-09 2:16
harold aptroot13-Apr-09 2:16 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger13-Apr-09 22:20
softwarejaeger13-Apr-09 22:20 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 1:43
harold aptroot14-Apr-09 1:43 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 2:18
softwarejaeger14-Apr-09 2:18 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 2:37
harold aptroot14-Apr-09 2:37 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 3:07
softwarejaeger14-Apr-09 3:07 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 3:18
harold aptroot14-Apr-09 3:18 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 3:23
softwarejaeger14-Apr-09 3:23 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 3:34
harold aptroot14-Apr-09 3:34 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 3:37
softwarejaeger14-Apr-09 3:37 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 3:56
harold aptroot14-Apr-09 3:56 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 4:00
softwarejaeger14-Apr-09 4:00 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
harold aptroot14-Apr-09 5:18
harold aptroot14-Apr-09 5:18 
GeneralRe: NAT Traversal in C# (P2P behind firewalls/NAT Routers), UDP Hole Punching Pin
softwarejaeger14-Apr-09 5:21
softwarejaeger14-Apr-09 5:21 

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.