make a class Employee like this
class Employee
{
public string Id;
public string Name;
public double Salary;
}
now take a hash table
HashTable hsEmp=new HashTable();
now change your code as
private void keepItbutton_Click(object sender, EventArgs e)
{
Empolyee objEmp=new Employee();
objEmp.id = idtextBox.Text;
objEmp.name = nametextBox.Text;
objEmp.salary =Convert.ToDouble(salarytextBox.Text);
hsEmp.Add(objEmp.Name,objEmp);
employecomboBox.Items.Add(name);
}
private void showbutton_Click(object sender, EventArgs e)
{
Employee objEmp=hsEmp[cboEmp.SelectedValue];
}
--Pankaj