Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to save to user settings?

I added some properties to the resources :

resources

but i can’t get access to the first one the Interval :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

[DefaultValue(200)]
public int TimerInterval
{
    get => m_Interval;
    set
    {
        value = Math.Max(55, Math.Min(value, 500));
        if (m_Interval != value)
        {
            m_Interval = value;
            dotsTimer.Interval = m_Interval;

            Properties.Settings.Default.in
        }
    }
}

there is no Interval after the dot when i typed Default.
there is no Interval.

and how do i set in the resources the interval to be type int and not string ?

>Solution :

You can use User or Application settings instead of resources, that way you can choose the type. You can find it under project > project properties

enter image description here

Click Create or open application settings

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading