o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

[2005] My.Settings... -

I'm trying to save a string to the settings of my project... however when i restart my computer it's not saved... works fine while running but stop the program and it's gone...

Code:
 Dim smtp As String
        smtp = InputBox("Please enter your SMTP address, this will be something like smtp.xtra.co.nz or smtp.slingshot.co.nz", "SMTP")
        If smtp = "" Then
            MessageBox.Show("You didn't type anything", "No STMP input", MessageBoxButtons.OK, MessageBoxIcon.Error)
            Exit Sub
        Else
            My.Settings.smtp = smtp
            Label17.Text = smtp
        End If
How can I save it for ever?

 

[2005] Better way of storing user settings -
I like using the My.Settings class, but it gets a little clunky when having to specify a setting for various things for each form. What I'm thinking would be cleaner is if I could some how store various settings into a single My.Settings item by way of a custom object representing var


[2005] Share My.Settings -
Hello! I am createing 2 applications (executables). Both of them use the exact same data. One of the EXEs runs automatically (well, by being triggered by the task scheduler) and the other will be used to manage the settings and data in the database that the 2 link to. I wan


[2005] WebBrowser internet settings -
hi all, i made a web browser and i want to change some of the internet settings when a button is pressed. is there a vb 2005 code to change internet settings? i.e. Change LAN Settings. thx


[2005] My.Settings Not So Friendly! -
My App has a wizard, this Wizard starts up and creates tables. When this wizard Finishes its work, i want it to store a value so that i use it to call a splash screen to startup the next time. i was trying to use My.Settings but, It is seeming so hard for me to store my settings for AL


[2005] Access my.settings -
With VB.NET 2005, is there a way to access all the stored elements of my.settings? Something like: for each xxx in my.settings debug.print settingname(xxx) & " = " & settingvalue(xxx) next


[2005] Using NameValueCollection with My.Settings -
In my 1.1 applications I usually create a class for strongly typing my config settings. It works well, there is a little coding effort, but I think the new My.Settings functionality is worth looking into. For simple settings I have no problems. My issue is adding a namevaluecollecti


My.Settings - Location in My Documents [2005] -
Since I have started working with VB.Net 2005 I use the My.Settings instead of the registry. I like it and it works fine, but now I have a customer who has made it a habit of deleting the location where the settings are stored (C:\Documents and Settings\[user name]\Local Settings\A


[2005] Reset Settings in VB 2005 Express -
I'm just wondering, when are the only times when you should reset the settings in Visual Basic 2005 Express Edition? I'm just curious.


[2005] Save Connection string Programatically -
Hi all, I'm using the my.settings class in vs2005 to set and retrieve settings in my application. Now, on my login form, I use the connection string in my.settings to connect to sql to run the application, but if for some reason the server settings change, how can I save the connec


[2008] My.Settings! -
I have a few questions relating My.Settings. 1. Is it possible to store a file in My.Settings? 2. Where are the settings from My.Settings stored? On the PC, or in the EXE itself? 3. Is it possible for an user or another program to read settings stored using My.Settings?


[2005] Question about My.Settings -
Are My.Settings supposed to save on its own (even when data is bound to controls) or only when I call My.Settings.Save()?


My.Settings VS.Net 2005 -
Hello I am currently using VS.net 2005 to construct a program which will monitor the VPN connection in our office to various locations. The program will ping each location continually and if a reply is not received then the error is reported to the user. I have been able to get


[2005] Settings & Namespace -
I have released a version 1.0 of an application with a group of settings under the namespace name of X. When I released version 2.0 of an application, under the namespace name of X, I simply copied the version 1.0 settings file into the appropriate version 2.0directory. All worke


[2005] Issue with application settings and property binding -
I've specified some ApplicationSettings in my app and I've bound them to text boxes in my settings dialog. My settings dialog is a pretty standard form with inputs, and OK/cancel buttons. The problem is, if I change any of the text inputs, these persist to the application settings i


[2005] Quick question on My.Settings -
Hi All, When you access a setting in My.Settings for example say My.Settings.ArtistName does the ArtistName property get read directly from the XML file or from memory? I am using My.Settings.ArtistName more than thousand times in a For loop and if every time it is going to read it


[2005] User Settings & Changing Application Versions -
I'm having an issue where I have user defined settings for my application using my.settings. Users set thing such as database hosts and other application settings. When I release a new version of the application (and have updated the version number), when someone runs the new .EXE


[2005] Saving/Loading Settings Problem -
Hey Guys, So I started working with settings and finally got the hang of it. I use the my.settings to load and save settings which I have configured via the settings tab in Visual Basic. (Its just strings and Integers) Ok, when I run my program (debug) from Visual Basic Expres


[2005] Multi-User Settings -
What is the best way about handling multiple user settings for an application that only has about 7-10 settings that can be set per user? None of the settings is life threating information its just basic information...(favorites, start-up directory preferences, keywords, timer inte


[2005] Always use same settings -
I have a bunch of default user settings that can be changed from my program. The problem I have is that depending on how I start my program, I get a completly different set of settings. For example, I run my program from the IDE and set a setting to "A". If I quit and ru


[2005] Save Individual Setting -
Hey Guys, I have added some settings to my program via the settings tab in VB.Express. I know that settings are saved when the application closes but that does not suit my program so I turned that off. In order to save settings in my program I added a button and when clicked i


[2005] Application Settings -
How is this used? I want to save many filepaths and folderpaths when closing the app and load them when starting up. I know I can use a file to load and save the settings, but I was looking around and saw a thread on Application Settings. However, in the thread it had nothing on how


[2005] Saving File... -
I want to save settings of my game my my.setting.settingname etc but i want to be able to go file save as and put all of these settings into a file of some sort so the next user starts from scratch as I will clear all settings when you load the progam.... but a user can load these set


[2005] Application Settings Blank After Restart -
I have an application that I wrote that uses the My.Application.Settings to store information. I have also set this application to run on startup by adding it to the registry start up. When I restart my computer the application starts up after the OS starts but it doesn't seem to lo


[2005] my.settings -
how do i bind a my.settings setting to a checkbox?


[2005] User needs 2 or more instances -
I made a VB.NET 2005 application package that stores its configuration using my.settings. When my package is installed on a computer, some users may need to run two or more instances of my program, each one having different settings. The only way I managed to do it, the user must


[2005] Export/Import User My.Settings -
I have a Windows Forms application which has more than 100 user scoped settings in the My.Settings config file. The application will be installed to about 30 users' machines, mainly laptops. There is no shared server/file location or database behind the application. It is a standa


[2005] Saving Configuration Settings -
Hi, this is probably a dumb question, but I'll ask anyway. In vb6 I could save values to the registry so that when I load my form, I have certain settings in place based off that registry value. Now, I've been told in .Net the way to go is XML (or maybe something similar). What


[2005] help with My.Settings -
I am trying to keep a sorted list of favorites folders that would be unique to each user and think that using My.Settings would do what I want. I can create the list from the settings tab of MyProject, but I dont know how to initialize it. When the apps run, I get a NullReferenceExce


where is my.settings :confused: -
You must think I am a total noob but I've been looking about the web for the easiest way to store settings and from threads I have read it seems like My.Settings is the best way to store settings, but i cant find where it is to create my own settings for my application. I'm using v


How to allow .net 2005 exe in network for all -
Hi I have put my .net 2005 exe in server which will be run from network from all pcs. currently i have to go each and every pc and i have to do secutiry settings to allow full trust to each and every pc using .net sdk. this is tedius job as i have more than 100 pcs in lan. Is


[2005] TabPage2.Enter -
I use TabPage2.Enter to load up some settings. When I change some settings, how can I reload TabPage2, so it reloads the settings?


[2005] Add Setting during runtime -
Hey, Is it possible to add a "Setting" to a project during runtime? I'm building some code editor, like an IDE, for some game, and I am trying to implement 'bookmarks', where the user can save or load (goto) a specific line in the text. I got it working perfectly for


[2005] Read App.My.Settings from dll -
Guys, I have a VS2005 VB application with 3 associated dll's. Is it possible for me to read my apps my.settings (app.config) XML file from the dlls, rather than each of my dll's having their own my.settings ? Or would this create a circular reference ? My application, PWBV3.exe,


[2005] How to disable/enable the settings -
Hi all, can anyone tell me how to disable some of my software settings for i am feeling abit annpyed that some windows pop-up. I tried browsing thru the options but some doesnt seems to work or cant be found. 1. whenever I double-click on a button that i have made in my form where I


Date & DateTime formats -
Hi there, My problem is the following: When I assign a custom formatted Date & Time to a Date variable it loses it’s formatting. Ex. 2005-06-07 15:46 [Format(Now(), "yyyy-MM-dd HH:mm")] now when I assign this to a variable of type Date or DateTime this become


Using "My.Settings" propeties on ListBox[2005] -
Hi, everybody. I am trying to use the " my.settings" property on vb.net 2005, to setup the properties of the label and combo boxes of a small project, however, I have not being able to figure the way to save the settings (contents) of a Listbox, the labels are working fine.


[2005] how to save My.Settings.____ -
i have created a string value in My.Settings but i am having a problem with saving the value. cuz My.Setttings.comments is read only. so how can i save?


[2005] Resource File Read Only -
I am trying to use the resource file and I read in the forums that I can set these properties if I create my own Resource file. I added one and named it... put a few settings in it and my settings are still read only. I got away from the my.settings since I didn't want to have to


[2005] WinXP Settings -
i want to create something that would set all of my windows xp settings for me for whenever i re-install windows xp (i seem to do that a lot). where would i go about starting this?


where does the data of my.settings stored -
i was playing with my.settings, and its a cool way to store settings like fonts, window size etc. i just want to know where is these settings is stored, is it stored in the .exe or is it in the registry? i just want to make sure that when I overwrite the .exe file, the settings i