110,538
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.IO;
using System.Windows.Forms;
class Form1 : Form
{
protected override void OnShown(EventArgs e)
{
string ProgramName = Path.GetFileName(Application.ExecutablePath);
MessageBox.Show(ProgramName);
}
static void Main()
{
Application.Run(new Form1());
}
}