private void MainFormReportes_Load(object sender, EventArgs e)
        {
            idprograma = 1;


            this.gendbfformatoreporteTableAdapter.Fill(this.dSGEN.gendbfformatoreporte, idprograma);
            this.ordenTableAdapter1.Fill(ds, idprograma);
            ordenar();

            matriz1 = new string[Lbsorden.Items.Count];
            for (int i = 0; i < Lbsorden.Items.Count; i++)
            {
                matriz1[i] = Lbsorden.Items[i].ToString();
            }
            Lbsorden.Focus();
        }
 private void Lsbformato_SelectedIndexChanged(object sender, EventArgs e)
 {
     ordenar();
     Lbsorden.Focus();
 }