| UserId | ||||||
| Password | ||||||
| FName | ||||||
| LName | ||||||
| Address | ||||||
| Country | ||||||
| Contact | ||||||
| Gender | ||||||
| Education | ||||||
Pls tail Me friend How to work textbox selectindex change event .Just Like a Enter UserId than all textbox and check box check and fill automatic
pls suggest the code and logic plss.....
Wim SturkenboomPosted Oct 25, 2014, 3:31 PM
I suggest that you handle the keypress event. Check for 0x0D or 0x0A (
Code like
private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
char x = e.KeyChar;
if (x == 0x0A)
{
MessageBox.Show("0x0A", "KeyPress");
e.Handled = true;
}
if (x == 0x0D)
{
MessageBox.Show("0x0D", "KeyPress");
e.Handled = true;
}
}
Instead of the messagebox, read data from your datasource (database?) and populate the fields.
Note that above is code for WinForms, not WebForms.