using Stone.Common; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Text; using System.Windows.Forms; namespace Stone.WinModule { public partial class frmWelcome : Stone.WinModule.frmBase { private string bgfile = Application.StartupPath + "\\bg_main.jpg"; public frmWelcome() { InitializeComponent(); } private void frmWelcome_Load(object sender, EventArgs e) { try { if (File.Exists(bgfile)) { Image img = (Image)Bitmap.FromFile(bgfile); this.BackgroundImage = img; } } catch { } } } }