public partial class Slik : Form { public Slik() { InitializeComponent(); Dogovor dog = (Dogovor)Application.OpenForms["Dogovor"]; DataGridView dgv = (DataGridView)dog.Controls["dataGridView2"]; byte[] data = (byte[])dgv.SelectedRows[0].Cells[3].Value; MemoryStream ms = new MemoryStream(data); pictureBox1.Image = Image.FromStream(ms); }
private void Slik_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; }
}