Try the following code and any doubt and need just comment below this solutions
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Others")
textBox1.Visible = true;
}
private void textBox1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyData == Keys.Enter)
{
comboBox1.Items.Add(textBox1.Text);
textBox1.Visible = false;
DataInsert();
DataLoad();
}
}
Thanks & Regards,
Anand. G