Exemplo n.º 1
0
 private void addImagen()
 {
     pictureBox1.Image = Image.FromFile(@"recursos/sin_portada.png");
     try
     {
         dataGridView1.DataSource = udao.obtenerRegistros("");
         this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
         n1.Focus();
     }
     catch (SqlException e)
     {
         MessageBox.Show(this, "Error" + e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }