Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cancel Events Pin
Cracked-Down30-Jun-09 22:58
Cracked-Down30-Jun-09 22:58 
QuestionRe: Cancel Events Pin
musefan1-Jul-09 1:21
musefan1-Jul-09 1:21 
QuestionHow to attach file when sending emails Pin
dabuskol30-Jun-09 21:54
dabuskol30-Jun-09 21:54 
AnswerRe: How to attach file when sending emails Pin
Manas Bhardwaj30-Jun-09 21:58
professionalManas Bhardwaj30-Jun-09 21:58 
QuestionHow to close the form using Alt+f4? Pin
swetha_insoft30-Jun-09 21:37
swetha_insoft30-Jun-09 21:37 
AnswerRe: How to close the form using Alt+f4? Pin
SeMartens30-Jun-09 21:41
SeMartens30-Jun-09 21:41 
AnswerRe: How to close the form using Alt+f4? Pin
stancrm30-Jun-09 21:41
stancrm30-Jun-09 21:41 
AnswerRe: How to close the form using Alt+f4? Pin
DaveyM6930-Jun-09 22:24
professionalDaveyM6930-Jun-09 22:24 
It should just work as others have said. If for some reason it doesn't, you can code it yourself. This is a little function I use occaisionally to do the opposite - stop Alt+F4 closing the form. Adapt it to suit.
private const int WM_SYSKEYDOWN = 0x0104;
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
    return ((msg.Msg == WM_SYSKEYDOWN) && (keyData == (Keys.Alt | Keys.F4)));
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

QuestionWhen the finally code is executed? Pin
Fired.Fish.Gmail30-Jun-09 20:45
Fired.Fish.Gmail30-Jun-09 20:45 
AnswerRe: When the finally code is executed? Pin
N a v a n e e t h30-Jun-09 20:54
N a v a n e e t h30-Jun-09 20:54 
AnswerRe: When the finally code is executed? Pin
Christian Graus30-Jun-09 21:37
protectorChristian Graus30-Jun-09 21:37 
GeneralRe: When the finally code is executed? Pin
dojohansen30-Jun-09 22:45
dojohansen30-Jun-09 22:45 
GeneralRe: When the finally code is executed? Pin
PIEBALDconsult1-Jul-09 5:20
mvePIEBALDconsult1-Jul-09 5:20 
GeneralRe: When the finally code is executed? Pin
dojohansen1-Jul-09 5:34
dojohansen1-Jul-09 5:34 
GeneralRe: When the finally code is executed? Pin
PIEBALDconsult1-Jul-09 11:17
mvePIEBALDconsult1-Jul-09 11:17 
AnswerRe: When the finally code is executed? Pin
musefan30-Jun-09 22:00
musefan30-Jun-09 22:00 
GeneralRe: When the finally code is executed? Pin
dojohansen30-Jun-09 22:54
dojohansen30-Jun-09 22:54 
GeneralRe: When the finally code is executed? Pin
musefan30-Jun-09 23:08
musefan30-Jun-09 23:08 
GeneralRe: When the finally code is executed? Pin
dojohansen30-Jun-09 23:26
dojohansen30-Jun-09 23:26 
GeneralRe: When the finally code is executed? Pin
J4amieC30-Jun-09 23:45
J4amieC30-Jun-09 23:45 
GeneralRe: When the finally code is executed? Pin
dojohansen1-Jul-09 0:40
dojohansen1-Jul-09 0:40 
GeneralRe: When the finally code is executed? Pin
musefan1-Jul-09 0:55
musefan1-Jul-09 0:55 
GeneralRe: When the finally code is executed? Pin
musefan1-Jul-09 2:08
musefan1-Jul-09 2:08 
GeneralRe: When the finally code is executed? Pin
J4amieC1-Jul-09 2:12
J4amieC1-Jul-09 2:12 
GeneralRe: When the finally code is executed? Pin
musefan1-Jul-09 2:19
musefan1-Jul-09 2:19 

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.