Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
Generaltab control problem Pin
blankg30-Jul-04 10:59
blankg30-Jul-04 10:59 
Generaldifferentiating between MouseDown and single click Pin
smartyosu30-Jul-04 9:28
smartyosu30-Jul-04 9:28 
GeneralRe: differentiating between MouseDown and single click Pin
Heath Stewart30-Jul-04 9:32
protectorHeath Stewart30-Jul-04 9:32 
GeneralEvent Handler Pin
eggie530-Jul-04 7:42
eggie530-Jul-04 7:42 
GeneralRe: Event Handler Pin
Heath Stewart30-Jul-04 8:25
protectorHeath Stewart30-Jul-04 8:25 
QuestionWhere is the Activitybar? Pin
matthias s.30-Jul-04 4:36
matthias s.30-Jul-04 4:36 
Questionhow can i navigate between controls on a form using enter key in c# Pin
ch_faf30-Jul-04 4:01
ch_faf30-Jul-04 4:01 
AnswerRe: how can i navigate between controls on a form using enter key in c# Pin
Michael P Butler30-Jul-04 4:21
Michael P Butler30-Jul-04 4:21 
You could override the PreProcessMessage method of either the Control or the Form.

Roughly


public override bool PreProcessMessage(ref System.Windows.Forms.Message msg)
{
  Keys keyCode=(Keys)(int)msg.WParam & Keys.KeyCode;
  if((msg.Msg==WM_KEYDOWN || msg.Msg==WM_KEYUP) &&  keyCode==Keys.Enter) 
  {
      msg.WParam=(System.IntPtr)0;
      // Do stuff here
        return true;
  }
}


Michael

CP Blog [^]

AnswerRe: how can i navigate between controls on a form using enter key in c# Pin
Heath Stewart30-Jul-04 7:36
protectorHeath Stewart30-Jul-04 7:36 
GeneralArray´s via reflection... Pin
Norman-Timo30-Jul-04 3:09
Norman-Timo30-Jul-04 3:09 
GeneralRe: Array´s via reflection... Pin
leppie30-Jul-04 7:30
leppie30-Jul-04 7:30 
GeneralRe: Array´s via reflection... Pin
Norman-Timo1-Aug-04 19:42
Norman-Timo1-Aug-04 19:42 
GeneralConsole.writeline not working from a windows app. Pin
Admiral Ackbar30-Jul-04 3:00
Admiral Ackbar30-Jul-04 3:00 
GeneralRe: Console.writeline not working from a windows app. Pin
Wender Oliveira30-Jul-04 4:41
Wender Oliveira30-Jul-04 4:41 
GeneralRe: Console.writeline not working from a windows app. Pin
Michael P Butler30-Jul-04 4:54
Michael P Butler30-Jul-04 4:54 
GeneralRe: Console.writeline not working from a windows app. Pin
Heath Stewart30-Jul-04 7:32
protectorHeath Stewart30-Jul-04 7:32 
GeneralRe: Console.writeline not working from a windows app. Pin
Admiral Ackbar30-Jul-04 8:19
Admiral Ackbar30-Jul-04 8:19 
GeneralDrag n drop treeview Nodes between two different applications Pin
misterbear30-Jul-04 2:02
misterbear30-Jul-04 2:02 
GeneralRe: Drag n drop treeview Nodes between two different applications Pin
Heath Stewart30-Jul-04 5:58
protectorHeath Stewart30-Jul-04 5:58 
GeneralRe: Drag n drop treeview Nodes between two different applications Pin
misterbear31-Jul-04 4:59
misterbear31-Jul-04 4:59 
GeneralRe: Drag n drop treeview Nodes between two different applications Pin
Heath Stewart31-Jul-04 5:26
protectorHeath Stewart31-Jul-04 5:26 
GeneralMessage Removed Pin
30-Jul-04 1:01
wibblewibblewibble30-Jul-04 1:01 
GeneralRe: Image Class Problem Pin
Bret Mulvey9-Aug-04 17:54
Bret Mulvey9-Aug-04 17:54 
GeneralWebBrowser's Document Complete event Pin
profoundwhispers29-Jul-04 23:02
profoundwhispers29-Jul-04 23:02 
GeneralRe: WebBrowser's Document Complete event Pin
HiltonG30-Jul-04 2:30
HiltonG30-Jul-04 2:30 

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.