Can anyone tell me ???Why KeyPress Event is Not working .when I press enter .It Does not go in the KeyDown event(Where i did breakpoint) during debugging.let me know the idea. Any help would be highly appreciated !!!
Code:
private void TxtPumpNo1A_Keydown(object sender, System.Windows.Forms.KeyEventArgs e){
            if (e.KeyCode == Keys.Return){
                double val = 0;
                try{                
                    val = double.Parse(TxtPumpNo1A.Text);
                }
                catch{
                    MessageBox.Show("PumpNo1A Cannot be Text");
                    TxtPumpNo1A.Text=string.Empty;
                    TxtPumpNo1A.Focus();

                }