Ph8l Posted September 27, 2004 Share Posted September 27, 2004 How can this be done? Any ideas? Link to comment Share on other sites More sharing options...
0 Ph8l Posted September 27, 2004 Author Share Posted September 27, 2004 Never mind found somthing that works :) protected override System.Boolean ProcessCmdKey( ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) { if ((msg.Msg == 0x104) && (((int) msg.LParam) == 0x203e0001)) return true; return false; } Link to comment Share on other sites More sharing options...
0 Winston Posted September 27, 2004 Share Posted September 27, 2004 you can handle the form closing event easily by setting the e.cancel = true, i think its true i forgot true or false, this will stop people from closing the app from the close button and Alt + F4 Link to comment Share on other sites More sharing options...
0 Ph8l Posted September 27, 2004 Author Share Posted September 27, 2004 i tryed that, didn't seem to work... Link to comment Share on other sites More sharing options...
0 Winston Posted September 27, 2004 Share Posted September 27, 2004 works for me try this private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; } Link to comment Share on other sites More sharing options...
0 Ph8l Posted September 27, 2004 Author Share Posted September 27, 2004 Ah ok works now... :s... maybe before i used false instead, lol who knws. Link to comment Share on other sites More sharing options...
0 Ph8l Posted September 27, 2004 Author Share Posted September 27, 2004 Thanks BTW (Y) Link to comment Share on other sites More sharing options...
Question
Ph8l
How can this be done? Any ideas?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts