0
私はSharpDevelopのテンプレートを使用して作成した設定ファイルからのアクセス設定(MySettings)にしようとしている:SharpDevelopのアクセスリソースファイルの設定
設定:
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string s_Username {
get {
return ((string)(this["s_Username"]));
}
set {
this["s_Username"] = value;
}
}
}
コード:
void MainFormLoad(object sender, EventArgs e)
{
MessageBox.Show(AdhesionCharting.Properties.MySettings.s_Username);
}
を
エラー:
「AdhesionCharting.Properties.MySettings」は「タイプ」です指定されたコンテキストでは無効です
ありがとうございました。 –