C#

C#

C#クラスでMessageBoxを使う場合

//クラスでMessageBoxを使う場合using System.Windows.Forms;
C#

C#自身のパス

//ファイル名を含むフルパスと、フォルダのパス MessageBox.Show(Application.ExecutablePath + "\n" + Application.StartupPath);