IO.File.ReadAllLines - Doesn't Go "/Settings.ini" Just Instead "C:/Settings.ini"

Sep 30, 2009

Im just wondering whats wrong with this line vb Dim lines As New List(Of String)(IO.File.ReadAllLines("/Settings.ini")) Well its working.. But it doesnt goes "/Settings.ini" just instead "C:/Settings.ini".. But I type "/Settings.ini".. how make it local folder?

View 2 Replies


ADVERTISEMENT

Application.restart After My.settings.save Doesn't Load The New Settings

Feb 8, 2008

i have created a user setting named 'setmeup' as string, scope = user, value = "magical meow meow!".in my code i access it and assign it a new value like this...my.settings.setmeup = "howdy cowboy!"my.settings.save()application.restart()when the application restarts, i expect the my.settings.setmeup = "howdy cowboy!" but when i check its contents its still "magical meow meow!".but when i use application.exit() instead of application.restart() and manually restart the program, my.settings.setmeup = "howdy cowboy!" which is correct.what must i do? i want to use application.restart() because i don't want the users to double-click the icon again to start the program. i want the program to restart automatically.

View 2 Replies

VS 2010 - My.Settings - Can't Find File Which Reflects Changes To User Settings

Apr 15, 2011

1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...

2. I'm not actually saving them when I think I am.

Regarding 2. - do I need to invoke

Is this all I need? And if so, why are my user.configs empty?

View 1 Replies

VS 2008 Settings Are Read From App.config Instead Of Settings-file

Oct 30, 2009

I have created a settings-file for my plug-in-based app. When the mainApp writes the settings to the file, the pluginApp should read the settings from the settings-file (when opening or at runtime even better), but somehow it reads the settings from the app.config-file. This means that the pluginApp never will read the settings according the values of the file.

View 4 Replies

VS 2008 Using 'Settings File' (Settings1.settings)

Aug 5, 2009

I saw that you can also use a "Settings File" (Add new Item)to add your settings instead of the application settings. But I can't seem to write any values to the file. Someone with experience with the "Settings1.settings"?

View 2 Replies

My.Settings.Upgrade Stopped Preserving Settings After Visual Studio And Framework Were Upgraded?

Jan 13, 2011

The company has been using Visual Studio 2008 and .NET Framework 2.0 for approximately 2 years. During that time we released several versions (4.x.x) of our program to the public and were able to preserve the user's settings using My.Settings.Upgrade.During the past development cycle we upgraded the program to Visual Studio 2010 and .NET Framework 4.0 and changed the version to 5.x.x. Now, when a user upgrades from 4.x.x to 5.x.x they lose all of their settings.However, in all upgrades after that point (ie 5.0 to 5.1) all the user's settings are once again preserved.I checked C:Documents and Settings<USER_NAME>Local SettingsApplication DataCompanyName and it contains two directories:

ApplicationName_Url_aaa ApplicationName_Url_bbb

where aaa and bbb are 32 character strings. All of the user.config files for the 4.x.x releases can be found in the ApplicationName_ Url_aaa directory. All of the user.config files for the 5.x.x releases can be found in the ApplicationName_Url_bbb directory.Based on this information it seems like something changed when we converted our program to VS2010 and Framework4 that is now causing a different 32 character string to be generated. However, we have been unable to track it down.

View 9 Replies

Unable To Make Some Settings And Load The Result Of The Settings Via LinQ Into The Grid Of The UscStat?

Jan 3, 2012

I have the following structure:OLD: frmMain (WinForm)uscStat (UserControl with Grid) In frmMain I'm able to make some settings and load the result of the settings via LinQ into the Grid of the uscStat.

[Code]...

View 1 Replies

Application.Settings VB 2005 - Save Arrays Using The Settings System Object

Jan 14, 2009

I just wondered if you can or can't save arrays using the settings system object. There seems to be no way of entering it at designtime. It seems implied you cannot create new user settings.subobjects at runtime. I'm looking to find the easiest way to save a populated array of PictureBox's. If the only way is a self/custom made/managed .ini file then I need to know so i can start on that but I was hoping to use some of all this phaff in the new frameworks usefully.

View 3 Replies

ClickOnce Overwrites User Settings Settings .NET 2008 Cant Use Registry UAC Causes Error

Aug 5, 2009

I am rewritting my application to conform to ms standards. We used to save all settings to registry for user settings, servername, size and locations.so we are now saving them into My.Settings app.config the only problem is that each time there is an update clickonce will isntall the newupdate but now all settings are loist and user has to save everything all over again..

I am trying to follow the book here but it seems i keep getting stuck somewhere. registry has worked fine for years but i understand we must move on, but if stuff like this happens then i just wasted a long time converting all code to conform for it to not work..

View 1 Replies

How To Maintain Application Modified Settings In The Settings Files After A Program Update

Sep 8, 2009

Is there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.

View 3 Replies

ConfigurationManager Doesn't Save Settings To Exe.config?

Dec 15, 2011

(My question is similar to this one, but the code is slightly different, and the solution doesn't work for me)I'm trying to save settings changes to the app.config:

Dim config As System.Configuration.Configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
config.AppSettings.Settings("HistoryRootDirectoryPath").Value = p_historySavingPath

[code].....

View 1 Replies

VS 2010 Save The Treeview Items To Settings (my.settings.history)?

Mar 25, 2011

I'm working with an Treeview and i'm new at it and i have 2 questions.

1. How can i save the treeview items, to settings (my.settings.history)

2. How can i save the treeview items as an TXT or XML file or another exception.

View 13 Replies

Difference Between Standard My.settings And Adding A New Class That Is Of Settings?

Mar 3, 2009

my old vb6 program used to store to ini files now with .net I rekon I need to do something new.. was thinking XML but then in searching around I stumbled apon this my.settings stuff.. so I followed the instructions but something strange is going one..

1. whats the difference between the standard my.settings and adding a new class that is of settings ? anything ?

2. I made 10 new settings in the setting manager but when I try to change then it gives me the old squiggle line saying no go.

View 15 Replies

ShellExecute Doesn't Repond When Advanced Compiler Settings For Target CPU Is X86

Apr 19, 2010

I have noticed that ShellExecute does nothing (no errors or anything) if the Advanced Compile Options for the Target CPU is set to "x86", but it does work for "Any CUP' and "x64". Is there a way or setting to fix this? I am currently running Visual Studio 2005 on a Windows 7 x64 machine.[code]...

View 4 Replies

VS 2010 - Settings.settings Saved Into The Registry?

Jun 11, 2010

Small questions about the settings.settings. Are these settings saved into the registry? I'm want to use and external file for my connection-commands. I don't want to use the registry to store the strings. What do you recommend?

View 11 Replies

Application And Installer Doesn't Register Component Irrespective Of Any Settings In Install Package

Jul 22, 2009

I am using a 3rd party dll in an application and the installer does not register the component irrespective of any settings in the install package.It will register manually though using regsrv32 after installation.My question is how can I use the System. Diagnostics. Process.Start("cmd.exe")function to call the regsvr32 with the dll name after installation from the install package, also the correct syntax for referencing the installation folser if the user amends it on install so that it doesn't fail on execution because of spaces.Dim stRegPath as String= "regsvr32 & "" & Path.GetDirectoryName (Assembly. GetExecutingAssembly().Location) & "rogue.dll".

View 3 Replies

Add Custom Settings To The My.Settings Namespace

Mar 18, 2010

Add custom settings to the My.Settings namespace

View 7 Replies

Changing Settings.settings Not Working

Apr 19, 2012

I can double click on the Setting.settings and the projects Settings grid appears in design. I change the value of a user scope setting yet when I run the application in debug it picks up a value I set initially instead of the current value of the setting.

When the app starts I set a connection string to the path of the .SDF file that I set in the Settings.settings grid and accesss it with

mRootSDFPath As
String =
My.Settings.SDFConnectionString

[Code].....

View 6 Replies

Create Dynamic Settings Using My.Settings?

Apr 7, 2010

it is possible to create dynamic settings using My.Settings.For example, a person clicks "Add User"The program then creates the settings for that user, it creates User(DYNAMICNUMBER)FN, and User(DYNAMICNUMBER)LN. Where Dynamic number is the next user for no conflicts in the settings. Is this possible? So that you can save multiple users for example?

View 2 Replies

Reset User Settings In My.Settings?

Jun 29, 2010

how to reset user settings in My.Settings to the default value, because when i checked if the user settings works i have altered the settings so now i want the settings to go back to default, because i am going to distribute the software.

View 1 Replies

Save User Settings Using My.Settings?

Jun 8, 2010

how i can save user settings in vb.net

i have a project with different buttons when a user clicks a button the image of PictureBox1 will change.

i want to save this image that the user has chosen after he closes the application, so it will be displayed in PictureBox1 when loaded.

i am using Microsoft Visual Basic 2010 Express

the languge is VB

View 5 Replies

Saving Printer Settings In My.settings?

Jul 15, 2009

I'm having trouble getting the objects of the PageSetupDialog and the PrintDialog to persist in my.settings Is there an example of this anywhere? Seems like it should be something there is a boiler plate for so I can see where I have gone wrong.Added a System.Drawing.Printing.PageSettings and System.Drawing.Printing.PrinterSettings entries in my.settings but even trying to save these form the results of the dialogs they show as nothing with out a error.




View 6 Replies

Store Three Items In My.Settings / Where Are My.Settings?

Jun 28, 2010

I store three items in My.Settings. One is a serialized string, and the other two are GUIDs. When the main form starts, those three items are loaded into various places. On rare, and so far unpredictable, occasions, one of these GUIDs is notably absent. The others may or may not be, I have yet to be able to check. Since it happens so infrequently (twice this month, though I have been working on the code every day), I'm having a very hard time tracking down the problem. However, it got me wondering where these values are stored. I see one of them showing up in App.Config, though without a value. Is there a place I can see the others?

View 13 Replies

Change The Default Settings In The My.Settings By Writing "Application.startuppath"?

Jan 19, 2010

I recently made an application which have some settings one of them a saving path

I want to make check if the saving path settings is available or not (drive)

If not so it got a default value which is application path

I tried to Change the default settings in the My.Settings by writing "Application.startuppath"But the application accept it as a string is there any way do dodge this problem?

View 6 Replies

VS 2008 Removing My.Settings - Uncheck The "save My.settings" On Shutdown?

Sep 27, 2009

I set up some application settings for checkboxes on an app and then decided to remove them. When I set the Application Settings to (none) in the designer and restarted the app, the checkbox constantly checks and unchecks itself. I completely remade the app and removed the file that is used to store my.settings in the Local folder of the user's appdata profile. I also made sure to uncheck the "save my.settings" on shutdown.

View 6 Replies

Change The Proxy Settings("Automatically Detect Settings") In IE

Jan 17, 2011

I was wondering if it is possible to change the Proxy settings("Automatically Detect Settings") in IE without making the change to the registry. I wasn't sure if the Hive is similar in all operating systems, So I figured there has to be an API to make the change, also without having the restart the IE or the computer for that matter.

View 2 Replies

Save A Collection Of Key/value Settings In My Application's "user Settings"?

Apr 14, 2008

I'm trying to save a collection of key/value settings in my application's "user settings" (they're column widths), but while I see no errors, when I run the code (in the IDE) my collection in "My.Settings" is always nothing at startup. I do a "My.Settings.Save" when the application exits, and barring the "serializers not found" errors in the IDE, no other errors occur. When I run my application as an exe, it behaves the same way..

View 7 Replies

Storing Settings For A .NET Windows Service: Service Property Settings, Serialization?

Aug 5, 2010

I am working on a .NET Windows Service where I am trying to store settings that will be used when the service is started and while it is running. I have searched through posts on SO and found that using the Settings in the properties of the project is great for use with console and winforms applications. However, Google and SO are silent when it pertains to storing these settings with a windows service.

View 4 Replies

IDE :: .settings Cannot Access Settings?

Jan 23, 2012

IDE :: my.settings cannot access settings!

View 5 Replies

My.settings VS XML Vs Txt - Best Way For Saving Settings

Jan 13, 2012

I am looking for the best way for settings within settings. Example would be an IRC network list. Which will be displayed as desired writing. If i clicked edit on that network it would bring up another form with that networks setting. Take xchat for example. what would you say would be best suited? XML seems more suited.

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved