My Settings Automatically get reset in vb.net - vb.net

I Have Developed many project in vb.net 2010 and in all the project i have used my Settings and all worked properly. But now in my new project There are 20 Setting in my Settings.... and every time i start my software it Automatically get reset to original value..... all 20 of them...... I can't find any problem in coding part i also tryed testing by creating semple setting and one button which will change that setting value. but when i re start software it's bach to original value ......
Plz give your suggestions for the same......

Related

Form designer missing controls after installing VS 2017 update

Today, VS 2017 Community Edition recommended I take a small update, which I did.
Now any VB.NET solution that I open shows a blank form (as if adding a new form). However, in examining the files, all of the controls and the associated code are present in the files. It just appears that the VB.NET Form Designer is not happy with something in a file.
Is there anything I can do to kick the Form Designer to display the form correctly or is there anything I can examine to ascertain some specific error it might be throwing so that I can look in the right place for resolution.
I figured it out and thought the solution might be useful for others. For some reason, the new version was converting every VB Form control from this (for example) Me.labelFrequency.Location = New System.Drawing.Point(113, 197) to this Me.labelFrequency.Location = New System.Drawing.Point(-32768, 197)(Note the italicized invalid coordinate). It did this for EVERY control in the project. The negative coordinate was throwing off the Designer (obviously). I cleared the VSTS cache and restored a version of the xyzzy.Designer.VB file with the correct values and it stopped doing this. Left this here in case anyone else found this useful.

Cannot edit new locale in Codename One IntelliJ plugin

I am using IntelliJ for Codename One development. I am trying to add a new locale, so the steps I do are the following:
1. Double click the theme.res
2. Click on Localization -> Add Resource Bundle
3. Add a new locale, say "de"
4. Double click on some row, or click "Edit text". Now I expect to be able to write in a value for the new locale, but nothing happens.
My expectations are based on this video and on the developer guide. Am I missing something or this is a bug in the IntelliJ plugin?
There seems to be a regression with the first 5 default entries. If you add a new entry into the designer tool it should work.
The problem is that the new entries are null instead of blank strings and one of our recent fixes failed to account to that. If you set them to a non-null value thru the XML and then try to edit again this should work as expected in the GUI.
We'll fix this in the next plugin update within 3-4 weeks (sometime during September 2016). Since the designer is part of the tooling and not the API it isn't updated every week. The fix is already in git.

Visual Studio My.Settings

I'm having some issues with MySettings in Visual Studio.
I set up some settings via the GUI (properties menu). Give them names and values. Everything is saved.
Let's say I have a setting: SettingA, Value=123 (User settings)
I go to display SettingA in a textbox on Formload, and nothing happens.
I go to display SettingA in a messagebox on Formload, nothing happens.
After the form loads up, if I code a button to display a setting in a textbox.... it does.
If, in code, I change the value of a setting and save it. Then have it display in a textbox, it will show the proper value.
If I close the app, and start it back up, it will either display nothing..or display an old value.
If I physically change a setting's value myself via the Properties menu of the project, then go to try to get the new value to display on Formload, or via button click.....either nothing will happen or it will still display an older value.
It seems that while the program is running, I can change values in code and have them display properly..whenever I want. After I close the program, I don't see any of the changes made in code reflect in the Properties menu.
This is just making no sense to me. If I physically changed a value myself, why won't it display/why is it still display the old value?
If I'm changing values in code, saving them in code, and then displaying them..why aren't they showing back in the Properties menu?
It's like changes just aren't being fully committed...or they are being read from more than 1 location.
Again, these are User settings.
The only code I have been using really are things like:
txtPort.Text = My.Settings.Port
My.Settings.Port = txtPort.text
My.Settings.Save()
Not necessarily in that order..just showing what I'm using.
It seems that you're changing the setting values during debug and then expecting to see those changes reflected in the development environment.
Here's the thing, the file that you're saving the settings in during debug is a copy of the file that you're working with in visual studio. It cannot affect the values inside of your visual studio project. The settings that you save will still be there the next time you debug only if you did not make any changes in the solution that require a rebuild.
If you want values that you enter via the properties window to show up in the debug then you will have to rebuild the application before debugging.
When you build the application to debug it, you're not running the program out of VS. VS creates an exe to run and runs it while retaining access to it's resources in order to give you feedback about the applications activities.
As nilllzz 7 stated, you can sync the VS Project settings to the settings in your debug files by clicking sync.

Visual Studio 2015 RC missing using option in quick actions

I have no idea what changed, but either using Ctrl+. or right clicking to bring up the quick actions in VS2015 RC (14.0.22823.1) on a token that I haven't added the right using statement used to give me an option to automatically add it for me, along with options to create a new class and a few other things.
The last couple days it's no longer giving me the option to add the using statement for me (I use this shortcut all the time). It still has all the other options.
Anyone else run into this? I recently installed Web Essentials 2015.0 RC and Code Maid (code maid was causing problems so I removed it). Could one of those affect it?
I just had the same problem and solved it by renaming the .suo file in ProjectName\.vs\ProjectName\v14 to something VS will not find, like .suo.bak.
This will reset your project specific preferences, like open files, solution explorer state etc. Make a backup of the file or rename it so you can go back if you are missing something important.
If everything works afterwards you can simply delete the renamed file, VS will create a new one.

Edit and Continue not working on Windows 7 , 32 bit OS

we are using VS 2012 on Windows 7 with 32 bit operating system.
I have enabled "Edit and Continue" feature from Tools -> Options -> Debugging -> Edit and Continue.
still I am not able to edit .cs file in debug mode.
can somebody suggest what am I missing?
I kept the break point in one of mvc controller class.
when it hit the break point, I tried to edit and got the below message:
Changes are not allowed in the following cases:
-When the debugger has been attached to an already running process
-The code being debugged was optimized at build or run time.
-The assembly being debugged is loaded as domain-neutral.
-The assembly being debugged was loaded through reflection.
-When Intellitrace events and call information is enabled.
Just to clarify some bits as it might help others..
1) The answer from [Gupta Anirudha F1beta] is correct
These below applies for Visual Studio 2012, 2013 + MVC 4, I was trying to edit Controller
2) If Edit & Continue is disabled, you cannot make changes in the *.cs code, you will see the message as [mmssaann] highlighted above. To edit your code, you need to stop debugging, edit your code and start debugging again to continue
3) If Edit & Continue is enabled, you can make changes in the *.cs code, BUT you will get a different message after you continue debugging saying Edit or Restart (so the website will be recompiled again). This approach is same as above but it seems a bit faster maybe you save like 1 click which makes in 50 years of coding like thousands of saved clicks :-)
I hope this helped :)
Web application need to be compiled when web-sites is compiled dynamically when executed.
Edit and continue will not work in MVC kind of project. You need to put break point and compile whole project to debug your project.