473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Add User settings to My.Settings at Runtime

Does anyone know how to add user scoped settings to My.Settings at runtime?

I know how to use the 'My Settings' designer to add user settings at design
time. I also, know how to create a class that inherits from the
ApplicationSettingsBase where you can define your own settings with their
default values, at design time. But, these are all done at design time which
aint want i need.

I've tried using the My.Settings.Properties.Add method, but that doesn't
seem to work? is it supposed to?

I'm guessing i'll need to have a user scoped collection setting that allows
me to add settings to it and then serializes the collection. This seems a bit
wrong though.

Cheers

Apr 12 '06 #1
2 9685
Dear Shane,

As I think, there are 2 ways to add user Setting for my.settings, but both
are under design time,

1) using Project Designer
2) Properties Windows

And there is a sentence from the .NET Documentation,
========
The My.Settings object provides access to the application's settings and
allows you to dynamically store and retrieve property settings and other
information for your application
========

--
Hope this help and welcome to reply the testing result.

Regards
Ken Lin, Kam Hung
Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
MCP, MCP+I, MCDST, MCSA, MCSE(NT4 & win2k),
MCSE+I, MCDBA(SQL7 & SQL2K), MCSD(VB6 & .NET), MCAD(.NET)
Microsoft Community Star(Hong Kong & Taiwan)
Microsoft Most Valuable Professional(.NET since 2003)
MCT2004 & 2005
"Shane" <Sh***@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Does anyone know how to add user scoped settings to My.Settings at runtime?
I know how to use the 'My Settings' designer to add user settings at design time. I also, know how to create a class that inherits from the
ApplicationSettingsBase where you can define your own settings with their
default values, at design time. But, these are all done at design time which aint want i need.

I've tried using the My.Settings.Properties.Add method, but that doesn't
seem to work? is it supposed to?

I'm guessing i'll need to have a user scoped collection setting that allows me to add settings to it and then serializes the collection. This seems a bit wrong though.

Cheers

Apr 12 '06 #2
So, you're saying there is absolutely no way to add settings at runtime?

My reason for needing this feature is to store settings for a pc's mixer
controls (ie. master volume, wave volume etc). I basically enumerate all
mixer controls and store their settings. Available mixer controls vary from
pc to pc, so there is no way i can know their settings at design time.

Cheers
Apr 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ano1optimist | last post by:
We've got users sharing a database where the front end apps reside on the local PC while the backend app is on the network. We have repeated problems where certain users lock the database causing...
5
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
7
by: Smithers | last post by:
I have a non trivial ASP.NET Web application that implements its navigation system via a user control (menu.ascx) placed on every page. It is important to note that the user control that hosts...
16
by: Colmag | last post by:
I've written an application with vb.net 2003 (framework 1.1) which automates a 3rd party viewing/printing application (via an activex control). I've released several versions over the last year...
3
by: Steve Long | last post by:
Hello. Can anyone tell me the proper way to save the properties of a user control between design time and run time? So, I've got this user control with the following properties: BarColor1...
3
by: Spam Catcher | last post by:
Does anyone use the My.Settings for runtime parameters? I.E. storing global variables? Is that proper?
0
by: davemills81 | last post by:
Hi, Does anyone know how to update the user or application settings of a dll after building? The problem I have is? I have recently developed a service in C# that attaches references a dll. ...
0
by: lazycoder207 | last post by:
hi i am writing an application in C# where i have to create a settings file everytime a new user starts using ...( i will be using username / password for my app to check if he was logged before in...
2
by: joe.wilkes | last post by:
does anyone know how to add settings during runtime? I would really like to incorporate this feature into a app that I am building.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.