Changing Me.Settings Without Reload

Nov 2, 2011

I have a setting labeled "Names" and in the program I can create a new "Names" value, which works fine. But, I want to be able to automatically save to this new "Names" and retrieve information from the value without having to close the program and reopen it in order to have the new setting saved. Is there a way to do this? I tried using the Me.Refresh() command, but it didn't do the trick.

View 2 Replies


ADVERTISEMENT

My.Settings.Reload Not Working

Jun 15, 2011

I have a application that requires access to a tablet, the tablet in order for it transfer data accurately needs to be calibrated from time to time. Users have expressed intrest that once calibration has been done and has been validated to be correct that
those new settings be ready for use in the main application. However, the only way I have been able to do this is to physically re-start the application. I have not had any luck with My.Settings.reload(). The settings I can confirm have changed but the application after saving them and calling the reload do not reload them. Am I doing something wrong? Does reload only work under certain conditions?

View 4 Replies

Settings.Reload() Not Working

Dec 19, 2011

I am implementing a mechanism to detect a corrupt user.config file in vb at application startup.

I do this at the start of the application before initializing anything.

If an exception is thrown while trying to access it, I replace the file with a backup last known good copy.

After replacing the bad file and physically checking that we have a good file I run the code :[code...]

View 1 Replies

Settings Reload Back To Default?

Aug 13, 2009

I am am having some problems with using My.Settings. I have saved some strings with My.Settings.Save() and am trying to set the strings back to its default value. I have tried using My.Settings.Reload() but it does not do anything. What is the best way to set the strings back to its default value that I have set it to? I have looked around for this question but could not understand what to do to fix the problem. I have gone to msdn.microsoft.com but could not find any good information, only this[URL]..

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

Changing Internet Proxy Settings?

Nov 25, 2009

How to do so in vb.net? In vb6 you do this [URL]... but then there is this as any and I wonder how to pass on the address of an object to the API also how to modify the program so we can put user authentication and password in VB using InternetSetOption

[Code]...

View 2 Replies

Changing Printer Preferences & Settings

Apr 2, 2010

I have to drive files using different settings from the printer driver. Can I change the preferences & settings of the driver from a VB application? Right now I am using a VBScript, using key presses, to drive the files. I am developing an application using VB.net. I want to get away from the key stroke method. It takes to long to drive all of the files at the different printer driver settings.

View 2 Replies

VS 2008 : Changing My.Settings Value During Runtime?

Sep 4, 2009

How do I change my code so that it will change the Value of the My.Settings.* to what TextBox1.Text is

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then
My.Settings.Acc1 = TextBox1.Text And My.Settings.Pass1 = TextBox2.Text

[code]....

View 2 Replies

Settings Is Readonly/ Changing Connection String?

Mar 2, 2006

This is regarding a windows app in Visual Studio 2005, a VB Windows application.'ve stored a connection string called strSQLConn in My.Settings. I'm trying to change the Server in code. I set a string variable called strConn to a new Connection string. My.Settings.Profile2006sql = strConn

This produces an error saying that My.Settings is readonly. I'm missing something basic here.

I don't know if this is the best way to change a connection string to toggle between a development server and a production server. My understanding is that if the setting Connection string is changed it will be used as the default for all the table adapters in a strongly typed dataset. Is that the case?

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

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

Forms :: RichTextBox - Changing Font Size Without Changing Families And Styles

Sep 21, 2010

I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:

[Code]...

View 5 Replies

Reload A Form Which Has Already Been Used?

Dec 23, 2011

I need to call again my gameplay form after finishing 1 stage. I'm just doing the normal calling. Me.Close() then Object.Show(). (Object is the object of gameplay form). The problem is, there is a continous loop of the form its flashing. It's like it's showing then closing again ang again non stop. What should I do? Or is there another way of calling again my gameplay form?

View 1 Replies

Way To Reload Data

Mar 3, 2009

In my SW there is a main form, inside this form there is a several controls (user controls), in any given time only one control is visible to the user, all others controls are: visible = false.

My question is how I execute several code lines when the control is shown again?

the only method I know is on the load event, but since the control is allready loaded I cant do that

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

Asp.net - Reload A Gridview Onclientclick?

May 22, 2009

I have a gridview that is only shown in a modal popup. right before I call the modal popup I set a value in a textbox. The gridview inside the modal popup depends on that textbox's value for it's data to show up at all. SO onclick I want to reload the gridview so that it will reload with the textbox's value.

View 2 Replies

C# - Reload Or Redirect From Within Thread?

Mar 17, 2011

In my ASP.NET page I have a thread that runs for a while (sometimes up to 2 mins). How could I reload/ redirect the page after the thread is done? I know I can't use Response.Redirect() because the page is already done loading.

View 1 Replies

Reload Current Page In Asp.net?

Sep 28, 2011

I have a session variable that changes some things about how a page looks. I have a button that changes the value of this session variable. But ... the onClick event happens after page load, so by the time I update the session variable based on the button click, it's too late, the page has already been loaded.

Theoretically I could put all the logic about changing the display into a function and call it from page load, and then call it again from the onclick after the variable as been updated. But this is impractical: there are many user controls that check the value, used on many different pages in different combinations. I would have to hard-code the list of user controls on each page, and if someone added a new user control to a particular page, they'd have to remember to update this function, which is lame.

Is there a way to force a page reload? (I can use response.redirect back to myself and it works. If all else fails I guess this is what I'll do. But it means an extra round trip to the server, which is clumsy.)

Is there a way to process the onclick before the page load?

View 4 Replies

Reload Main Window WPF?

Aug 15, 2010

I have a simple WPF vb.net application and wish to set the visibility property of some buttons on the main window to True when user successfully logs on

I have a MainWindow window with a frame hosting any number of pages and use the navigation service to load into this frame eg. Me.BodyFrame.Navigate(New System.Uri("Logon.xaml", UriKind.Relative)) One Page (logon) enables user to logon.

vb.net code:

Dim txtLocalLogonID = txtLogonID.Text
Dim pwdLocalPassword = pwdPassword.Password
Dim LocalLogon As New gblLogon()

[Code]....

How do I reload the main window? I realise the code is primitive but I just want to get it working first.

View 1 Replies

Reload Or Referesh 1 Form From Another?

Sep 12, 2009

I have 3 forms.....when i make changes in the form 2 ...i want to reload the form 1 so that it reflects the changes in the database..

View 1 Replies

Reload/Refresh A Form?

Mar 11, 2010

How can i reload/refresh the same form again without losing the data stored along with the form?

View 3 Replies

VS 2005 DataGridView Reload

Nov 12, 2009

After adding a row into the DB i am using the following to show me the DGV containing recently added data but it is not showing up.[code]

View 10 Replies

VS 2008 Reload Form?

Jun 26, 2009

how can i reload my form in vb9?

View 3 Replies







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