送分贴啊
app中是
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="skfpClient.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<userSettings>
<skfpClient.Properties.Settings>
<setting name="comname" serializeAs="String">
<value>COM1</value>
</setting>
</skfpClient.Properties.Settings>
</userSettings>
</configuration>
这样的内容
如果获取comname的值?刚学c#,网上找了几个方法都获取不到