INI文件里的内容是
[Color1]
Total=255
[Color2]
Total=0
[Color3]
Total=16777088
记取的代码是
color1=ColorTranslator.FromOle((int)(ini.IniReadValue("Color1","Total")));
color2=ColorTranslator.FromOle((int)(ini.IniReadValue("Color2","Total")));
color3=ColorTranslator.FromOle((int)(ini.IniReadValue("Color3","Total")));
但是出错..提示是string不能转化成int型
[Color1]
Total=255
[Color2]
Total=0
[Color3]
Total=16777088
记取的代码是
color1=ColorTranslator.FromOle((int)(ini.IniReadValue("Color1","Total")));
color2=ColorTranslator.FromOle((int)(ini.IniReadValue("Color2","Total")));
color3=ColorTranslator.FromOle((int)(ini.IniReadValue("Color3","Total")));
但是出错..提示是string不能转化成int型