Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 aGridView在应用程序中显示一些表格数据WinForm。 我有一个表列,它存储为 VarBinary 数据类型,其中包含我的图像数据。
GridView
WinForm
单击其中一个时,如何显示全尺寸图像?
我只是不得不做类似的事情,所以我会给你代码
Form frm = new Form(); PictureBox pb = new PictureBox(); //pb.Image = Image.FromFile("my.bmp"); pb.Image = myImage; pb.Dock = DockStyle.Fill; frm.Controls.Add(pb); frm.WindowState = FormWindowState.Maximized; frm.ShowDialog();