Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# C#4.0 buttons programming form , +
how can i disable the "windows+d" and "alt+f4" for my windows forms when they are running
i can only close them by the close buttons and minimiza buttons.
i dont want "windows+d" and "alt+f4" keys to handle my win forms.
if my forms is running and some1 press "windows+d" and "alt+f4" then this action will be set on
other application which is running in background and it will not affect on my forms!
any help?
Posted 21-Feb-13 18:24pm
Comments
Sergey Alexandrovich Kryukov at 22-Feb-13 0:37am
   
Why? why?!
—SA
syedaliaizazuddin at 22-Feb-13 0:46am
   
im making a winform as a widget. thatz why i dont want that some 1 press alt+f4 and my widget will close ..... hehehe!! simple
Abhishek Pant at 22-Feb-13 0:56am
   
this makes your app or widget somtimes annoying to users.I think its a abuse to users who will be using that app/widget.As every user wants easy and simple but not Annoying things.
syedaliaizazuddin at 22-Feb-13 1:10am
   
like widget they dont have a functionality of minimize ...........
syedaliaizazuddin at 22-Feb-13 1:31am
   
i have done almost .... the problem is when i pres win + d . it did not work for application , but it is dissabled for every application . i dont want that . i want that for only my application . and for others win + d should work

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Even though I never tried, I doubt that it can be done. What I know for sure, you cannot disable Ctrl + Alt + Delete, for a good reason (otherwise it would be possible to block the system), and I don't think you can do what you want.
 
But you should not try to do such thing, as it would be a greatest abuse. Think about your users.
 
You should always explain your ultimate goals when asking question. So, I don't know what are you trying to achieve and why, but I have one guess. Maybe what you need is so called "kiosk mode". Please take a look:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].
 
—SA
  Permalink  
Comments
syedaliaizazuddin at 22-Feb-13 0:43am
   
im making a winform as a widget. thatz why i dont want that some 1 press alt+f4 and my widget will close ..... hehehe!! simple
Sergey Alexandrovich Kryukov at 22-Feb-13 0:55am
   
Bad idea. I though it's something serious. Don't do it, your users would hate it, for a good reason.
—SA
syedaliaizazuddin at 22-Feb-13 1:10am
   
like widget they dont have a functionality of minimize ...........
syedaliaizazuddin at 22-Feb-13 1:31am
   
i have done almost .... the problem is when i pres win + d . it did not work for application , but it is dissabled for every application . i dont want that . i want that for only my application . and for others win + d should work

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,034
1 Sergey Alexandrovich Kryukov 4,838
2 Peter Leow 3,129
3 Maciej Los 3,079
4 DamithSL 2,465


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100