using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using UAS_MES.PublicMethod; namespace UAS_MES.Query { public partial class Query_ShowPicture : Form { string type = ""; public Query_ShowPicture(string FileType) { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; type = FileType; } private void Query_ShowPicture_Load(object sender, EventArgs e) { PicBox.Image = Image.FromFile(type); } } }