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

  • SEARCH
  • Home
  • 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 177735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:06:24+00:00 2026-05-11T14:06:24+00:00

I am creating a application that store basic database connection info like host,user, password

  • 0

I am creating a application that store basic database connection info like host,user, password and default database name in application settings using User Scope.

I am using .net 3.5 with Visual Studio 2008

I put 4 text boxes in a user control and bound their text property to the application settings individual properties.

//          // textBox_database         //          this.textBox_database.Location = new System.Drawing.Point(103, 101);         this.textBox_database.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);         this.textBox_database.Name = 'textBox_database';         this.textBox_database.Size = new System.Drawing.Size(255, 27);         this.textBox_database.TabIndex = 5;         this.textBox_database.Text = global::PHP_Code_Generator_2.Properties.Settings.Default.mysql_database;         //          // textBox_password         //          this.textBox_password.Location = new System.Drawing.Point(103, 69);         this.textBox_password.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);         this.textBox_password.Name = 'textBox_password';         this.textBox_password.Size = new System.Drawing.Size(255, 27);         this.textBox_password.TabIndex = 4;         this.textBox_password.Text = global::PHP_Code_Generator_2.Properties.Settings.Default.mysql_password;         this.textBox_password.UseSystemPasswordChar = true;         //          // textBox_user         //          this.textBox_user.Location = new System.Drawing.Point(103, 37);         this.textBox_user.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);         this.textBox_user.Name = 'textBox_user';         this.textBox_user.Size = new System.Drawing.Size(255, 27);         this.textBox_user.TabIndex = 7;         this.textBox_user.Text = global::PHP_Code_Generator_2.Properties.Settings.Default.mysql_user;         //          // textBox_server         //          this.textBox_server.Location = new System.Drawing.Point(103, 5);         this.textBox_server.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);         this.textBox_server.Name = 'textBox_server';         this.textBox_server.Size = new System.Drawing.Size(255, 27);         this.textBox_server.TabIndex = 6;         this.textBox_server.Text = global::PHP_Code_Generator_2.Properties.Settings.Default.mysql_server; 

these text boxes will get user data from users to set their own database info. i have a button that saves the modified info back to the settings file

private void button_save_Click(object sender, EventArgs e) {    Properties.Settings.Default.Save(); } 

but the design is not being saved. any help anyone?

regards, Anjan

To Cyril: Yes i had the code to assign modified value in properties, but then even the scope was set to ‘User’ it said readonly. So i removed the property assignment codes. now i brought the code back and restarted VS, it works perfect now 😀 silly me, i should have try this old procedure before. Thank you Cyril.

  • 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. 2026-05-11T14:06:25+00:00Added an answer on May 11, 2026 at 2:06 pm

    Hmm… I remember having the same problem a few months ago in one of my projects. Unfortunately I don’t recall how I solved it.

    Some checks…

    1. Try setting the property scope to User in the Project Properties.
    2. In the code you’ve listed I don’t see where you set the property (only see you retrieving the property). Where have you set it?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 121k
  • Answers 121k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Bracketing out your several, larger design questions, I can offer… May 12, 2026 at 12:30 am
  • Editorial Team
    Editorial Team added an answer <%= string %> is perfectly valid ASP.NET syntax. The reason… May 12, 2026 at 12:30 am
  • Editorial Team
    Editorial Team added an answer You need DoEvents and a variable whose scope is greater… May 12, 2026 at 12:30 am

Related Questions

I need to make an application for creating logic circuits and seeing the results.
I am creating a Web application using ASP.NET MVC, and I'm trying to use
I am working on a Windows Desktop application that will store a number of
Working inside the context of an ASP.NET application I am creating a page that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.