-
whats wrong ?? : (
i set the showintaskbar property of my form to false, and the top most to true
but the user can easily close the program with pressing alt+f4, what to do?
by the way when pressing alt+tab the program can be seen?!
what i want is nobody being able to close the program, and the program to be always on top, any solutions?!!!
thanks
-
Top Most only applies to within the current application. You'll need to use some API calls to make it TopMost for all applications. As for not letting the user shut down the app, that gets a little more tricky especially considering different OSs.
Here is a post in VB6 with the API for TopMost you just have to translate it into .NET:
http://www.vbforums.com/showthread.p...hreadid=264308
-
i dont seem to be having any problems with top most, when i open other app, it stays on top of all, the proplem is the alt+f4, and why does it show the window when pressing alt+tab when i've set the showintaskbar property to false?!!
thanks,
-
Alt+tab shows any running Applications regardless of whether they are shown in the taskbar or not. It should also appear in the TaskManager. I know for secuirty reasons it can be difficult to get around this in Windows 2k and higher.
-
and about the alt+f4, what can i do about that?
i have administrator privilages on the computers can we do anything about it using mmc's? or if we could do something in code that would be much better....
thanks.
-
and the thread you gave a link to, i have never programmed in vb6, just started in .net, it would be nice if you could let me know the code in .net, thanks for your again
-
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWindowsFormsFormClassControlBoxTopic.htm
"Note If your form does not display a control box, the form is not able to close using the ALT+F4 keyboard combination."
what are you writing, some kind of password hijacking trojan?
-
actually my form doesnt have a control box , but it still closes with alt+f4, since i never want it close i just set
e.cancel=true
in the handler of the closing event of the form
and i kept the program on top by putting
me.topmost=true
in the handler for the deactivate event of the form
i think theres no way to go around it, is there?!!!!