111,120
社区成员
发帖
与我相关
我的任务
分享
string path = Application.StartupPath + "\\111.bmp";
this.pictureBox1.Image = System.Drawing.Image.FromFile(path);
string path;
#if DEBUG
path = Path.Combine(Directory.GetParent(Application.StartupPath).Parent.Parent.FullName, @"pic");
#else
path = Path.Combine(Application.StartupPath, @"pic");
#endif
MessageBox.Show(File.Exists(path + "\\a.txt").ToString());