指定winfrom程序配置文件 System.AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", @"C:ABC.CONFIG");但是当你读取过配置文件后就再也不能更改了。