Private void pruebas_load(object sender, EventsArgs e)
{
If (cb2.selectedIndex >0)
{
String[] valores = combo.captar_info(cb2.text)
Txtcosto.text = valores[0];
}
}
This is the code so that when selecting an element of a combobox the textbox is filled and it does not.