Solved

How Can I change a settings

Posted on 2008-06-21
5
201 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 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