|
-
Oct 24th, 2003, 10:58 AM
#1
Thread Starter
Addicted Member
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
-
Oct 24th, 2003, 11:27 AM
#2
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
-
Oct 24th, 2003, 11:50 AM
#3
Thread Starter
Addicted Member
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,
-
Oct 24th, 2003, 11:54 AM
#4
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.
-
Oct 24th, 2003, 12:01 PM
#5
Thread Starter
Addicted Member
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.
-
Oct 24th, 2003, 12:15 PM
#6
Thread Starter
Addicted Member
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
-
Oct 24th, 2003, 12:59 PM
#7
Lively Member
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?
-
Oct 24th, 2003, 04:14 PM
#8
Thread Starter
Addicted Member
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?!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|