Hi Gang,
Man is C# a heck of a lot harder to write events for than Visual
Basic. In any event I can't get the following code to fire when I
press a key on a picture box:
// Handle the KeyDown event to determine the type of character
entered into the control.
private void picLogo_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
MessageBox.Show(this, "you pressed a key", "keyboard",
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void InitializeComponent()
{
this.picLogo.KeyDown += new
System.Windows.Forms.KeyEventHandler(this.picLogo_ KeyDown);
}
I don't get any errors, but it just never fires :(.
Thanks for any and all help,
Christian Blackburn