Solved

How Can I change a settings

Posted on 2008-06-21
5
193 Views
Last Modified: 2010-04-23
I have a variable in My.Settings  name ShortProductForm  as boolean .

How Can I change it to My.Settings.ShortProductForm = false / true . within My Application

Or as xml file.
0
Comment
Question by:Ahmadal_najjar2003
  • 3
  • 2
5 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 21837656
You just need to save it after you change it

My.Settings.ShortProductForm = False
My.Settings.Save()
0
 

Author Comment

by:Ahmadal_najjar2003
ID: 21837915
I Put it but the editor itself says (property is read only)
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 21837957
You defined the scope (when you define the setting) as user, not as application.
0
 

Author Comment

by:Ahmadal_najjar2003
ID: 21838734
So , do I have to set it as user. Bec I defined it as application .
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 21838822
Yes, you have to define as user not as application is you want to make changes on it.

"Scope indicates if the property is read-only. If the value is Application, the property is read-only; if the value is User, the property is read-write"
http://msdn.microsoft.com/en-us/library/saa62613(VS.80).aspx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now