Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
Generaltextbox in a webpage problem Pin
Sakkijha22-Sep-04 23:28
Sakkijha22-Sep-04 23:28 
GeneralRe: textbox in a webpage problem Pin
Dave Kreskowiak23-Sep-04 0:32
mveDave Kreskowiak23-Sep-04 0:32 
GeneralRe: textbox in a webpage problem Pin
sreejith ss nair23-Sep-04 0:38
sreejith ss nair23-Sep-04 0:38 
GeneralRe: textbox in a webpage problem Pin
shambho23-Sep-04 4:21
shambho23-Sep-04 4:21 
GeneralMinimizing a form Pin
exhaulted22-Sep-04 23:25
exhaulted22-Sep-04 23:25 
GeneralRe: Minimizing a form Pin
sreejith ss nair23-Sep-04 1:15
sreejith ss nair23-Sep-04 1:15 
GeneralRe: Minimizing a form Pin
eggie523-Sep-04 2:16
eggie523-Sep-04 2:16 
GeneralPlease Help Pin
exhaulted22-Sep-04 23:13
exhaulted22-Sep-04 23:13 
Hi all, i posted a couple of days ago about closing forms and the problems i was having but i was unable to get the problem solved so here it is again, any ideas are welcome.

I have a scheduler program that runs in the system tray, when double clicked an interface is displayed. This program is to be used on PC's in the backoffices of some of our shops and the users are not IT literate so they can't be trusted to not shut the scheduler down.

To get round this i have encoded a password into the assembly that must be entered when the user shuts the pc down or logs off. This way, the only time the scheduler can be shut down is by end tasking it or if one of our admin guys takes remote control of the pc and inputs the password.

The scheduler is in the startup for the users so if they log of and back on it will start again.

All of the above works fine but...

When the user logs windows off the program asks for the password, there will be times when the users at the ahop need to log off / shut down the pc and they don't know the password so the pc wil just hang or wait for an end task. This is the problem, how can i allow the system to shut the program down when the user logs off but at the same time stop the user from closing the program using alt + F4 or the cross in the corner of the form unless they have the password.

My ideas were to either remove the cross and disable Alt + F4, then implement a button to shut the program down. This would allow me to check the password on the button click and leave the form.Close() function alone so the PC can also shut the app down.

Or, if i could tell the difference between the system shutting the app down and the user then i could just check for the password when the user tries to close the app and not when the system does it.

If anyone has any suggestions about how to make my ideas work or any ideas of their own it would be a great help.

Kev
GeneralRe: Please Help Pin
sreejith ss nair23-Sep-04 1:35
sreejith ss nair23-Sep-04 1:35 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 3:09
exhaulted23-Sep-04 3:09 
GeneralRe: Please Help Pin
sreejith ss nair23-Sep-04 3:24
sreejith ss nair23-Sep-04 3:24 
GeneralRe: Please Help Pin
Stefan Troschuetz23-Sep-04 3:39
Stefan Troschuetz23-Sep-04 3:39 
GeneralRe: Please Help Pin
Stefan Troschuetz23-Sep-04 3:44
Stefan Troschuetz23-Sep-04 3:44 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 4:00
exhaulted23-Sep-04 4:00 
GeneralRe: Please Help Pin
Stefan Troschuetz23-Sep-04 4:11
Stefan Troschuetz23-Sep-04 4:11 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 5:37
exhaulted23-Sep-04 5:37 
Generallast focusd event Pin
Sakkijha22-Sep-04 23:12
Sakkijha22-Sep-04 23:12 
GeneralRe: last focusd event Pin
Dave Kreskowiak23-Sep-04 0:29
mveDave Kreskowiak23-Sep-04 0:29 
GeneralRe: last focusd event Pin
sreejith ss nair23-Sep-04 0:44
sreejith ss nair23-Sep-04 0:44 
Generalabout conecting c# with oracle database Pin
ydderf222-Sep-04 21:14
ydderf222-Sep-04 21:14 
GeneralRe: about conecting c# with oracle database Pin
Heath Stewart22-Sep-04 22:00
protectorHeath Stewart22-Sep-04 22:00 
GeneralUsing C# treeview of compact framework problem Pin
ting66822-Sep-04 20:54
ting66822-Sep-04 20:54 
GeneralCasting A String to a control Pin
Nick Price22-Sep-04 13:37
Nick Price22-Sep-04 13:37 
GeneralRe: Casting A String to a control Pin
Xenther22-Sep-04 13:40
Xenther22-Sep-04 13:40 
GeneralRe: Casting A String to a control Pin
Nick Parker22-Sep-04 14:47
protectorNick Parker22-Sep-04 14: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.