Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to make Date function Pin
mav.northwind9-Jul-04 23:36
mav.northwind9-Jul-04 23:36 
GeneralRe: how to make Date function Pin
Werdna10-Jul-04 11:13
Werdna10-Jul-04 11:13 
GeneralIs it possible to serialize an assembly Pin
joelwwk9-Jul-04 18:26
joelwwk9-Jul-04 18:26 
GeneralRe: Is it possible to serialize an assembly Pin
Robert Rohde10-Jul-04 1:51
Robert Rohde10-Jul-04 1:51 
GeneralRe: Is it possible to serialize an assembly Pin
Nick Parker10-Jul-04 18:14
protectorNick Parker10-Jul-04 18:14 
GeneralChild Control Painting problems Pin
Jon_Slaughter9-Jul-04 17:15
Jon_Slaughter9-Jul-04 17:15 
Questionhow to catch key combinations? Pin
BrownJacket9-Jul-04 15:34
BrownJacket9-Jul-04 15:34 
AnswerRe: how to catch key combinations? Pin
mav.northwind9-Jul-04 23:33
mav.northwind9-Jul-04 23:33 
Do the following:

Set the property "KeyPreview" of the form you want the key combination to be available in to "True", otherwise you won't get the keys if another control on your form receives and handles them before you do.

Then add an event handler for KeyUp to your visible form and add this code:
if (e.KeyCode == Keys.S &&
    (e.Modifiers & Keys.Shift) == Keys.Shift &&
    (e.Modifiers & Keys.Alt) == Keys.Alt)
{
  MessageBox.Show("Secret combination pressed: Shift+Alt+S");
  e.Handled = true;
}
else
{
  e.Handled = false;
}


That's it.

Mav
GeneralRe: how to catch key combinations? Pin
BrownJacket10-Jul-04 1:18
BrownJacket10-Jul-04 1:18 
AnswerRe: how to catch key combinations? Pin
Gary Thom12-Jul-04 3:59
Gary Thom12-Jul-04 3:59 
GeneralProblems with resources Pin
ricny0469-Jul-04 11:45
ricny0469-Jul-04 11:45 
QuestionTwo console windows? Pin
hammackj9-Jul-04 11:13
hammackj9-Jul-04 11:13 
GeneralPassing Values Pin
Dylan van Heerden9-Jul-04 9:42
Dylan van Heerden9-Jul-04 9:42 
GeneralRe: Passing Values Pin
Dave Kreskowiak9-Jul-04 9:48
mveDave Kreskowiak9-Jul-04 9:48 
GeneralRe: Passing Values Pin
Anonymous9-Jul-04 22:54
Anonymous9-Jul-04 22:54 
GeneralRe: Passing Values Pin
Robert Rohde10-Jul-04 1:57
Robert Rohde10-Jul-04 1:57 
GeneralRe: Passing Values Pin
Colin Angus Mackay9-Jul-04 10:06
Colin Angus Mackay9-Jul-04 10:06 
GeneralRe: Passing Values Pin
Dylan van Heerden9-Jul-04 22:57
Dylan van Heerden9-Jul-04 22:57 
GeneralRe: Passing Values Pin
Michael P Butler10-Jul-04 0:28
Michael P Butler10-Jul-04 0:28 
GeneralIE Browser and IHTMLDocument2 Pin
brian hanf9-Jul-04 9:18
brian hanf9-Jul-04 9:18 
GeneralDisable windows shortcuts!?! Pin
QzRz9-Jul-04 7:46
QzRz9-Jul-04 7:46 
GeneralRe: Disable windows shortcuts!?! Pin
Dave Kreskowiak9-Jul-04 8:47
mveDave Kreskowiak9-Jul-04 8:47 
GeneralRe: Disable windows shortcuts!?! Pin
QzRz9-Jul-04 9:04
QzRz9-Jul-04 9:04 
Generalchange bitmap resolution Pin
kendao9-Jul-04 7:25
kendao9-Jul-04 7:25 
GeneralRe: change bitmap resolution Pin
Heath Stewart9-Jul-04 8:58
protectorHeath Stewart9-Jul-04 8:58 

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.