G
Guest
I have a Windows.Forms application in .Net 2.0 that has a Settings class. In
the main form, I can access the setting named LastAttributeList like this:
Properties.Settings.Default.LastAttributeList
In another form in the same application, when I try to access that same
setting, the value is null. Stepping through the code and then trying to
access the LastAttributeList setting in the immediate window returns this
message:
'System.Windows.Forms.PropertyStore' does not contain a definition for
'Settings'
I can work around my problem by setting a value in the second form before
calling the form's ShowDialog() method but I would like to resolve why I
cannot access the Settings.Default instance in my second form.
Any suggestions?
Thanks,
Dale
the main form, I can access the setting named LastAttributeList like this:
Properties.Settings.Default.LastAttributeList
In another form in the same application, when I try to access that same
setting, the value is null. Stepping through the code and then trying to
access the LastAttributeList setting in the immediate window returns this
message:
'System.Windows.Forms.PropertyStore' does not contain a definition for
'Settings'
I can work around my problem by setting a value in the second form before
calling the form's ShowDialog() method but I would like to resolve why I
cannot access the Settings.Default instance in my second form.
Any suggestions?
Thanks,
Dale