Solved

How Can I change a settings

Posted on 2008-06-21
5
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET 2008 - SQL Timeout 9 51
VB.NET Application Installation with sqlserver 8 49
vb.net background worker crossthread 11 30
Web page design problem 3 19
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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