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


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 2008 Unable To Make Settings?

Apr 5, 2010

I'm having trouble understanding how this works.Under my Project properties I select Settings and define the ones I need.Things like:

DefaultSaveToLocation (As String)
DefaultFileName (As String)
NoOfTimesAppStarted (As Integer)

[code]...

View 4 Replies

VS 2005 Saving A Result In My.Settings?

Apr 25, 2010

I have two counters set up, one for dealers games won and the second one for players games won which both add up the results and displays them in a text box. I have another form made to display Statistics, for both 'This Session' and 'Overall', but how do I save the Overall score?? How can I keep a score saved after the game is closed?Is it something to do with the game setting?? Is there a my.settings option that I should be using?

View 5 Replies

Unable To Synchronize The My.Settings?

Sep 29, 2009

With my program I wanted to change the fixed connection string to a User entered one. So in the application settings I added DBConnectionString as a user define String. If the string if empty, it shows the window where one can add the server, database and user name / password. If you press the OK button, it saves the settings:

Private Sub LDBOKBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LDBOKBtn.Click
' ----- Server name is required.
If (Trim(LDBServer.Text) = "") Then
MsgBox("The Server or Host name is required.", _

[code]....

The problem is that when you press the same button to show the System Settings again, the ConnectionString is empty again. So nothing was saved.

View 3 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

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

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 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

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

LINQ: Writing And Reading XML Settings?

Mar 8, 2012

i am having trouble reading my XML settings. I Create new entries like this

Private Sub Create()
Dim doc As New XDocument
If File.Exists("Settings.xml") Then
doc = XDocument.Load("Settings.xml")

[code]....

The XML file will have multiple <Network> Entrys. I cant figure out how to loop the file and get every <Server> entry. But then if i opened a form and gave the variable one of the server entries how could i get that <Network> based on the server entries child parameters.

View 10 Replies

How To Load Settings In Tabcontrol

Jan 24, 2010

I have created at form with a tabcontrol. On tabpage 1 and tabpage 2 there are a textbox, each containing a setting. When the form loads only the setting on tabpage1 is loaded. Tabpage2 remains empty. What am I doing wrong? Does form_load not work with a tabcontrol?

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
My.Settings.textbox1 = TextBox1.Text

[CODE].....................

View 3 Replies

Load And Save Settings?

Jan 26, 2009

I wanna save and load my color selected by ColorPicker like this[code]...

View 9 Replies

Using Settings To Load Different Configurations?

May 12, 2009

I currently use a Configuration.xml file to store the various preferences and settings of my application. I'd like to continue using this but allow my different users to "load" individual XML files...

To do this, I imagine I can the My.Settings to identify the location of the appropriate file. Reading the docs, it seems that I need to use the .Save method after making any changes to my settings but I'm observing that changes are persisting, regardless of not doing this... what am I doing "wrong"?

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

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

Save / Load Font Settings?

Aug 12, 2010

I am trying to save the last used font, font color, and background color. Then when starting myapp up again, read the data and use the last used settings.[code....

View 3 Replies

Save And Load A Printer Settings?

Mar 19, 2011

I found this thread [URL]on saving and loading printer settings It worked fine in XP Virtual Machine, but when I try it on my Windows 7 64 bit it errors on the P.Start Line()I changed from Rundll to PrintUI and it seems to work OK saving the file, but when I try to restore using the code below, it still fails on the P.Start line.What am I doing wrong?

Dim p As New Process
p.StartInfo.FileName = "PRINTUI.EXE"
p.StartInfo.Arguments = " /Sr /n """ & sPrinter & """ /a ""c:my11_17.dat"" 2 7 c u d"
p.Start()

View 6 Replies

Save My App's Settings In My Own Format And Load It?

Feb 11, 2010

How can I save my app's settings in my own format and load it?

View 6 Replies

Save/Load Font Settings?

Aug 12, 2010

I am trying to save the last used font, font color, and background color. Then when starting myapp up again, read the data and use the last used settings. Here is what I have so far: User pick new font &/or color

Code:
If FontDialog1.ShowDialog() <> Windows.Forms.DialogResult.Cancel Then
MainText.Font = FontDialog1.Font
MainText.ForeColor = FontDialog1.Color

[Code].....

View 2 Replies

Settings Load From External File?

Feb 26, 2012

I have a project need to reset the my.settings by external files, i have problem to get back the system.drawing.color

Frist I use the SaveConfigFromMySettingToFile() to get the config file,then i add the LoadConfigFromFileToMySetting() at the FormLoad action,But Nothing change! Why? without the LoadConfigFromFileToMySetting() at system load i got the correct color of the button from my.settings.

[Code]...

View 3 Replies

VS 2008 Save And Load Settings?

Dec 26, 2009

i try to save sattings and load settings in runtime:to save settings

My.Settings.bodyTxtSize = numericupdown.Value
to load settings
txtBody.Font.Size = My.Settings.bodyTxtSize

[code]......

View 5 Replies

ListBox Load Settings From String Collection?

Feb 26, 2009

I'm trying to create a favorite box in my web browser using this code in Favorites.vb

Public Class favorites
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click

[Code]....

Now I have it so when you click the add button it will put the URL in the string FavList, and place the URL in Listbox1 however I have no idea how to save it, and load it.

So the next time the user opens it, it will have the URL in the string and URL box, so when they click the URL in listbox1 it will redirect the WebBrowser. I think it works like that already I just need to know how to save it, and load it.

View 2 Replies

Re-load The My.settings Values From The Config File?

Nov 29, 2009

I would like to tweak some of the numbers in the app.exe.config file while the program is running. I would like my program to re-load those valued from the edited txt file.

I have tried my.settings.reset, reload, and upgrade. None of these seem to reload the values from the config file into the program

vs 2005
vb.net

How can i get my program to re-read the config file into its memory once it is up and running. say when a button is clicked?

View 4 Replies

App Not Load User Scope Settings When In Starts By Registry Run Key?

Aug 17, 2010

Why does my app not load the saved user scope my.settings when it starts by way of the registry run key? This key starts programs after the user login, per microsoft. So why does it not load the saved user settings? The program does start up, but all the areas on the form where saved user scope settings should be, are the default values (mostly empty strings). (The user scope settings are there if I start my program by the desktop shortcut

I've looked, searched, posted to other forums, but can't seem to find an answer.

View 2 Replies

C# - Load The Settings The User Used The Last Time When The Program Starts

Jul 18, 2009

My typical application has a couple of textboxes, checkbuttons, radiobuttons, and so. I always want to load the settings the user used the last time when the program starts, and also want to save the settings as the users clicks "Save settings" or closes the application. When the user attempts to save the settings, I'll have to check each of the controls for input errors (sometimes they have to have a max length, other times only caps, other times other things, there isn't a rule for them all, everytime it'll be different), and only if everything OK i'll let him save the options. If there is something wrong, no option is saved and my error-control provider will pop up a description of the input type info that should be put in that control.

I've been designing this from scratch for all my projects, but it's being a pain to do it. So I'd thought maybe now was the time to do some library to help me. I thought initially that maybe it'd be a good idea to have all the controls on my form that are going to be part of this save/load process to have an attribute associated with them, something like this [Code]

View 2 Replies

Game Programming :: Getting A Highscore To Save And Load Using My.Settings

May 20, 2011

I've tried to implement this highscore saving feature, so that when my application closes, the highscore saves within the my.settings storage function, and when my program loads up again, the same highscore loads up from this file. atm, it works ONLY within the application (I can close forms and it's still there, but if i end the program it resets to 0 next time it's loaded).it's basically 2 lines of code..1 for saving and 1 for loading..is this the best way to save a highscore for a game? I was initially thinking of making a database and linking it to that, but apprantly it's easier with the My.settings. even thought of using stremawriter but it's more uneccessary work over my.settings.[code]

View 7 Replies







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