Hi,
First of all is there/ what is the Archive URL of this newsgroup ?
Secondly I want to handle keypresses in my application. When i add events to
Keydown or Keypress to the main form, the events are not triggered upon
pressing any key ...
Any ideas what i am doing wrong ? - see very simple code below ....
Many thanks in advance
Jon Rea
// VC++ c# .net generated code
this.KeyDown += new System.Windows. Forms.KeyEventH andler(this.onK eyDown);
this.KeyPress += new
System.Windows. Forms.KeyPressE ventHandler(thi s.onKeyPress);
//function added by the event section of the properties window
private void onKeyPress(obje ct sender,
System.Windows. Forms.KeyPressE ventArgs e)
{
MessageBox.Show ("hello");
}
First of all is there/ what is the Archive URL of this newsgroup ?
Secondly I want to handle keypresses in my application. When i add events to
Keydown or Keypress to the main form, the events are not triggered upon
pressing any key ...
Any ideas what i am doing wrong ? - see very simple code below ....
Many thanks in advance
Jon Rea
// VC++ c# .net generated code
this.KeyDown += new System.Windows. Forms.KeyEventH andler(this.onK eyDown);
this.KeyPress += new
System.Windows. Forms.KeyPressE ventHandler(thi s.onKeyPress);
//function added by the event section of the properties window
private void onKeyPress(obje ct sender,
System.Windows. Forms.KeyPressE ventArgs e)
{
MessageBox.Show ("hello");
}
Comment