Follow us on Twitter

Comments

  1. Nisse says:

    Hello

    When I use this row
    Properties.Settings.Default.SQLFormsTestConnectionString = tbConnectionString.Text;

    I get compiler error.
    Inventory.Properties.Settings.SQLFormsTestConnectionString’ cannot be assigned to — it is read only

    So… what is your solution to this and it seams that there is none.

  2. Hello Nisse,
    Could you give me some more details like, did you create SQLFormsTestConnectionString using the Settings tab and what is the scope?

  3. me too says:

    I get cannot be assigned to — it is read only trying to assign to a setting. this doesn’t work. application scope.

  4. It seems like both of you are getting the same error, you are trying to assign a value to a setting that has an application scope. Settings with application scope are meant for things like connection strings, which the user cannot change at run time.

    So if that’s the case just delete the setting and create a new one with the same name and change the scope to User. That should solve it.

  5. Devon says:

    I am not very happy that people keep saying things like Change Application Settings, when in fact they are not showing how to change application settings.. They are showing how to change User Settings at run time. I did not find this helpful at all.

Leave a Reply