Click here to Skip to main content
15,917,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
evdoxos10-Jul-04 0:34
evdoxos10-Jul-04 0:34 
GeneralRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
mav.northwind10-Jul-04 5:22
mav.northwind10-Jul-04 5:22 
AnswerRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
leppie10-Jul-04 1:05
leppie10-Jul-04 1:05 
AnswerRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
partyganger10-Jul-04 4:09
partyganger10-Jul-04 4:09 
GeneralRe: In StringBuilder copied from richTextBox fast way to findout end of line ? Pin
evdoxos10-Jul-04 7:23
evdoxos10-Jul-04 7:23 
Questionhow to make Date function Pin
Anonymous9-Jul-04 20:26
Anonymous9-Jul-04 20:26 
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 

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.