Click here to Skip to main content
15,895,192 members
Home / Discussions / C#
   

C#

 
AnswerRe: mutlitiple user application Pin
Mohammed Halabi12-Sep-05 5:50
Mohammed Halabi12-Sep-05 5:50 
Questioncustom draw TextBox Pin
g00fyman11-Sep-05 2:42
g00fyman11-Sep-05 2:42 
AnswerRe: custom draw TextBox Pin
Mohamad Al Husseiny11-Sep-05 9:00
Mohamad Al Husseiny11-Sep-05 9:00 
GeneralRe: custom draw TextBox Pin
g00fyman11-Sep-05 13:49
g00fyman11-Sep-05 13:49 
GeneralRe: custom draw TextBox Pin
Mohamad Al Husseiny11-Sep-05 14:34
Mohamad Al Husseiny11-Sep-05 14:34 
GeneralRe: custom draw TextBox Pin
g00fyman11-Sep-05 14:38
g00fyman11-Sep-05 14:38 
QuestionCheck if System Time has changed (by user) Pin
gnjunge11-Sep-05 1:38
gnjunge11-Sep-05 1:38 
AnswerRe: Check if System Time has changed (by user) Pin
Dave Kreskowiak11-Sep-05 7:21
mveDave Kreskowiak11-Sep-05 7:21 
Option 1 - Not good because what's stoping the user from stooping the service? Plus, you can change the system time without Windows even running.

Option 2 - The registry is a poor place to store information like that. It can be easily changed to reflect a date/time (if you store it as such).

It would be better to track how long your application has been in use. This means incrementing a counter for each minute that ticks by. You could then hide this value in a bogus .DLL file somewhere, preferrably encrypting the value before you write it to the file. Then just decrpyt it and start incrementing the value again the next time the app is started. This method has the advantage that it does rely on the system time at all.

After so many minutes, you just give a notification and quit.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Check if System Time has changed (by user) Pin
gnjunge12-Sep-05 1:17
gnjunge12-Sep-05 1:17 
GeneralRe: Check if System Time has changed (by user) Pin
Dave Kreskowiak12-Sep-05 1:32
mveDave Kreskowiak12-Sep-05 1:32 
GeneralRe: Check if System Time has changed (by user) Pin
gnjunge12-Sep-05 2:25
gnjunge12-Sep-05 2:25 
Question2 VS UI Q's: Reorder Funcs and Collapse funcs Pin
Niklas Ulvinge11-Sep-05 1:32
Niklas Ulvinge11-Sep-05 1:32 
QuestionHooking 456 port Pin
akshayswaroop11-Sep-05 1:30
akshayswaroop11-Sep-05 1:30 
AnswerRe: Hooking 456 port Pin
KaptinKrunch12-Sep-05 9:33
KaptinKrunch12-Sep-05 9:33 
GeneralRe: Hooking 456 port Pin
Anonymous12-Sep-05 18:53
Anonymous12-Sep-05 18:53 
QuestionDefault Printer Pin
teeka11-Sep-05 1:08
teeka11-Sep-05 1:08 
AnswerRe: Default Printer Pin
Mohamad Al Husseiny11-Sep-05 8:37
Mohamad Al Husseiny11-Sep-05 8:37 
QuestionDockable interface Pin
rmedo11-Sep-05 0:41
rmedo11-Sep-05 0:41 
AnswerRe: Dockable interface Pin
S. Senthil Kumar11-Sep-05 2:51
S. Senthil Kumar11-Sep-05 2:51 
Questiondata relationship Pin
steve_rm10-Sep-05 23:12
steve_rm10-Sep-05 23:12 
AnswerRe: data relationship Pin
Guffa10-Sep-05 23:59
Guffa10-Sep-05 23:59 
QuestionWeb enable a Windows C# app Pin
StrayGrey10-Sep-05 20:06
StrayGrey10-Sep-05 20:06 
AnswerRe: Web enable a Windows C# app Pin
Guffa11-Sep-05 0:02
Guffa11-Sep-05 0:02 
QuestionDataTable PlaceHolder Pin
Expert Coming10-Sep-05 18:40
Expert Coming10-Sep-05 18:40 
AnswerRe: DataTable PlaceHolder Pin
rudy.net11-Sep-05 16:41
rudy.net11-Sep-05 16:41 

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.