private void FrmAsignarPrecio_Load(object sender, EventArgs e) { string mensaje = ""; mensaje = UtilityFrm.conectarbalanza(serialPort1); if (mensaje != "ok") { UtilityFrm.mensajeError(mensaje); this.Close(); } txtTara.Focus(); txtTara.SelectAll(); //buffer = serialPort1.ReadExisting().ToString(); //txtNombreProducto.AutoCompleteMode = AutoCompleteMode.SuggestAppend; //txtNombreProducto.AutoCompleteSource = AutoCompleteSource.CustomSource; //txtNombreProducto.AutoCompleteCustomSource = this.mostrarProductosPesables(); //UtilityFrm.conectarbalanza(); }