Value does not fall within the expected range
Error when trying to display the form designer. See picture of the error: Code of the screen: public partial class frmCanalVenda : frmEdit { public frmCanalVenda(CanalVenda canal, Cliente cli) : base(canal) { InitializeComponent(); bdsCliente.DataSource = cli; eabBar.ReadOnlyView = false; } private void frmCanalVenda_Load(object sender, EventArgs e) { try { Cursor.Current = Cursors.WaitCursor; bdsAgrupamento.DataSource = Agrupamento.GetAll(DatabaseAFV.Connection); bdsCanal.DataSource = Canal.GetAll(DatabaseAFV.Connection); bdsSubCanal.DataSource = SubCanal.GetAll(DatabaseAFV.Connection);