J 
		
								
				
				
			
		Jeroen Ceuppens
Hi, I want to create the following:
when i press escape , the program must set draw to false
so it put these code in my form:
this.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.Form1_KeyPress);
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar.Equals(Keys.Escape))
draw=false;
}
But the program doensn't work, when i press escape it does nothing, even
when i set a break on if (e.KeyChar.Equals(Keys.Escape)), it doens't get
there
Greetz
JC
				
			when i press escape , the program must set draw to false
so it put these code in my form:
this.KeyPress += new
System.Windows.Forms.KeyPressEventHandler(this.Form1_KeyPress);
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar.Equals(Keys.Escape))
draw=false;
}
But the program doensn't work, when i press escape it does nothing, even
when i set a break on if (e.KeyChar.Equals(Keys.Escape)), it doens't get
there
Greetz
JC
	
, so I would rather create a menu item with the Esc shortcut