I Have 2 text box and I am enter the first numbers and then press enter go to next textbox this event I want. . . . . . . . . . .
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.KeyDown += new eventHandler(textBox1_KeyPress);
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == Keys.Enter) textBox2.Focus();
}
private void textBox1_Enter(object sender, EventArgs e)
{
}
}
}