Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4607676
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:44:12+00:00 2026-05-22T00:44:12+00:00

Well i downloaded a program for wheater but it is not mind now, i

  • 0

Well i downloaded a program for wheater but it is not mind now, i watched, than you write a city and you close the program, and when you open it again, it has de last city you write, how is it? i watched it has this code in whaterform_formClosed
but how do i create these variables? and if this is posible can I to do a program without a database? saveing all in a dataset? or datatables? default databales? default dataset?
but now i want to know how to create a Default variable

         private void weatherForm_FormClosed(object sender, FormClosedEventArgs e)
    {
        //Save Settings
        Settings.Default.defaultCity = txtCity.Text;
        Settings.Default.intervalText = comboBoxEdit1.Text;
        Settings.Default.windowPosition = this.Location;
        Settings.Default.timerOn = timer1.Enabled;
        Settings.Default.intervalTime = delay;
        Settings.Default.Save();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:44:13+00:00Added an answer on May 22, 2026 at 12:44 am

    You can use ‘settings’ to do this:

    Starting with the .NET Framework 2.0,
    you can create and access values that
    are persisted between application
    execution sessions. These values are
    called settings. Settings can
    represent user preferences, or
    valuable information the application
    needs to use. For example, you might
    create a series of settings that store
    user preferences for the color scheme
    of an application. Or you might store
    the connection string that specifies a
    database that your application uses.
    Settings allow you to both persist
    information that is critical to the
    application outside the code, and to
    create profiles that store the
    preferences of individual users.

    See Using Application Settings and User Settings for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well... simple question, right? But with no so simple answers. In firefox i use
Well, it seems simple enough, but I can't find a way to add a
I have downloaded cruisecontrol.net setup and have installed it in C:\Program Files\CruiseControl.NET . It
well im learning to create a wordpress plugin i downloaded one and read the
it's a week that I'm trying to write a program that download correctly from
Somewhat inexperienced programmer here trying to write a program to log into my courses
I downloaded this plugin: http://code.google.com/p/jquery-autocomplete/ I write this: $(document).ready(function () { $('#txtStoryTags').autocomplete('@Url.Action(GetTags, Thread)', {
Well the subject is the question basically. Are there any version control systems out
Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
Well behaved windows programs need to allow users to save their work when they

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.