Why Application.StartupPath is missing in NETCF? I don’t know why either.. so most of you will try looking for some answer .. and the answer is this.
string startup = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
string directory = System.IO.Path.GetDirectoryName(startup);
string file = System.IO.Path.GetFileName(startup);
Thank you. This was just what I was looking for.
ReplyDeleteRegards,
Thomas