I have this error in my program on the next line of code...
private void btnGrabar_Click(object sender, EventArgs e) {
if (tbNombres.Text.Trim().Length > 0) {
contacto Persona = new contacto();
if (temp == 0) {
Persona.AgregarContacto(tbNombres.Text,
tbDireccion.Text, tbTelefono.Text, tbCelular.Text, tbEmail.Text,
fechaActual, Convert.ToInt32(cboProfesion.SelectedValue.ToString()),
Convert.ToInt32(cboPais.SelectedValue.ToString()));
}
}
}
the program is an organizer and you put info like name, cellphone, etc. i think the problem can be on my combobox but I don't really now, please help, if you need me to put the whole code just let me know.