Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Boolean in Properties.Settings.Default always returns false.

$
0
0

I have a boolean in properties.settings.default.

 private void Form1_Load(object sender, EventArgs e)
        {
            //Other code
            MessageBox.Show(Properties.Settings.Default.logoleft.ToString());
        }

I just did this simple test and no matter what value I set it to in Visual Studio 2012, the message box always says "False" even when it clearly says "True" on the IDE, and yes I have clicked the "save" button. I have closed the solution and opened it again but the problem still occurs.


Ivan




Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>