|
-
Oct 7th, 2023, 01:49 PM
#1
Thread Starter
Hyperactive Member
Problem with My.Settings (project)
Settings were intended to be an easy to use feature. I was OK with it, until recent project:
If you find this thread duplicated or similar to a resolved one, Please let me know.
As always
1) Few items were added in "Settings" tab in My Project and after declaring their type (User scope), a default value were set to them.
2) Normally I link them to corresponding controls through ApplicationSettings in property grid, (prior to binding) manually.
3) After running the application, changing values will be saved as we expected and next time machine retrieves last changed values.
Is it wrong? Not a My.Settings.Save() fan.
In recent project - which is a huge one in my world - even though "Save settings after shutdown" is checked, changing the values in runtime will not effect at all. I'm starting to consider this not as a bug, but an unwanted projectsettings side effect, unintentionally. I rather not to trick things but one of the obvious differences (between a demo/test project with a serious one) is that MySettings (with a gear icon) is added to "ProjectExplorer" hierarchy treeview now on, not in the properly-working one.
Plus, One left click on this item (Like other resources in project explorer) in property grid it can eighter be compiled, none, content resource or etc. and also be copied to project location or not. Which is your prefer options?
My goal is to store a COM port name, baud rate and a few boolean conditions related to checkboxes.
Any further clues/information can be attached if needed.
Last edited by dday9; Oct 9th, 2023 at 01:58 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|