原来在.NET中可以用Application.StartupPath获得,但是在CF中居然不支持
---------------------------------------------------------------
try:
using System.IO;
using System.Reflection;
string str = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
原来在.NET中可以用Application.StartupPath获得,但是在CF中居然不支持
---------------------------------------------------------------
try:
using System.IO;
using System.Reflection;
string str = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);