Click here to Skip to main content
15,890,741 members
Home / Discussions / C#
   

C#

 
AnswerRe: Recommended Books [modified] Pin
Drew McGhie30-May-06 10:40
Drew McGhie30-May-06 10:40 
QuestionProblem in fetching address book Pin
Musharaf Zaheer30-May-06 9:28
Musharaf Zaheer30-May-06 9:28 
QuestionCorrect x,y co-ordinates of Form Control Pin
Darren_30-May-06 8:14
Darren_30-May-06 8:14 
AnswerRe: Correct x,y co-ordinates of Form Control Pin
led mike30-May-06 8:33
led mike30-May-06 8:33 
GeneralRe: Correct x,y co-ordinates of Form Control Pin
Darren_30-May-06 8:51
Darren_30-May-06 8:51 
QuestionShort Keys to Window Form Pin
anderslundsgard30-May-06 7:54
anderslundsgard30-May-06 7:54 
AnswerRe: Short Keys to Window Form Pin
Darren_30-May-06 8:20
Darren_30-May-06 8:20 
AnswerRe: Short Keys to Window Form Pin
kasik30-May-06 8:24
kasik30-May-06 8:24 
If you want to catch Ctrl+S you can override ProcessCmdKey in your Form derived class, like this...
protected override bool ProcessCmdKey ( ref Message msg, Keys keyData )
{
    const int WM_KEYDOWN = 0x100;
    
    if ( msg.Msg == WM_KEYDOWN && keyData == ( Keys.Control | Keys.S ) )
    {
        MessageBox.Show("You have pressed Ctrl+S");
        return true;
    }
    
    return base.ProcessCmdKey( ref msg, keyData );
}
Hope that helps Smile | :)



“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent

Cheers,
Will
GeneralRe: Short Keys to Window Form Pin
anderslundsgard30-May-06 18:44
anderslundsgard30-May-06 18:44 
QuestionNever Mind: DataRelation in .NET 2.0 not serializable?!?!? [modified] Pin
Marc Clifton30-May-06 7:35
mvaMarc Clifton30-May-06 7:35 
QuestionCreating an mdb file Pin
likefood30-May-06 7:23
likefood30-May-06 7:23 
AnswerRe: Creating an mdb file Pin
Darren_30-May-06 8:24
Darren_30-May-06 8:24 
GeneralRe: Creating an mdb file Pin
likefood30-May-06 9:18
likefood30-May-06 9:18 
GeneralRe: Creating an mdb file Pin
Ed.Poore30-May-06 14:10
Ed.Poore30-May-06 14:10 
QuestionGeneric Abstract classes Pin
eggsovereasy30-May-06 6:34
eggsovereasy30-May-06 6:34 
AnswerRe: Generic Abstract classes Pin
Judah Gabriel Himango30-May-06 7:35
sponsorJudah Gabriel Himango30-May-06 7:35 
GeneralRe: Generic Abstract classes Pin
eggsovereasy30-May-06 7:48
eggsovereasy30-May-06 7:48 
GeneralRe: Generic Abstract classes Pin
Ed.Poore30-May-06 14:14
Ed.Poore30-May-06 14:14 
QuestionClick a tab control using the WinAPI [modified] Pin
Ista30-May-06 5:15
Ista30-May-06 5:15 
AnswerRe: Click a tab control using the WinAPI Pin
Judah Gabriel Himango30-May-06 7:36
sponsorJudah Gabriel Himango30-May-06 7:36 
GeneralRe: Click a tab control using the WinAPI Pin
Ista30-May-06 7:38
Ista30-May-06 7:38 
AnswerRe: Click a tab control using the WinAPI [modified] Pin
Ista30-May-06 8:07
Ista30-May-06 8:07 
QuestionCatpcha [modified] Pin
Nilob30-May-06 4:51
Nilob30-May-06 4:51 
AnswerRe: Catpcha [modified] Pin
J4amieC30-May-06 6:06
J4amieC30-May-06 6:06 
GeneralRe: Catpcha [modified] Pin
Ed.Poore30-May-06 14:19
Ed.Poore30-May-06 14: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.