var form = new System.Windows.Forms.Form(); var pb = new System.Windows.Forms.PictureBox(); pb.Image = System.Drawing.Image.FromFile(imgpath); pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; form.Controls.Add(pb);
var thread = new System.Threading.Thread( () => { System.Windows.Forms.Application.Run(form); }); thread.Start();