2013年5月3日

c# winfrom资源文件的调用和路径全解

摘要: 一>获取非嵌入程序集资源文件路径和方法(C#中获取程序当前路径的集中方法) System.Diagnostics命名空间 :string str1 =Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。System 命名空间:string str2=Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。System.IO命名空间:string str3=Directory.GetCurrentDirectory();//获取应用程序的当前工作 阅读全文

posted @ 2013-05-03 14:31 打肿脸充胖子 阅读(5868) 评论(0) 推荐(1) 编辑

导航