VS 2010 Saving Applications Settings?

Dec 4, 2011

I have made a dock bar program

So when I drag programs in I get this

But when I restart my program all the dragged in applications are gone.

save my settings,

View 7 Replies


ADVERTISEMENT

VS 2010 Saving Data From Applications By Saving A Text File Via A Stream Reader As A String

Feb 12, 2012

Currently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:

[Code]...

View 7 Replies

VS 2010 Saving Settings?

Dec 28, 2011

VB 2010 Express, Windows 7 The settings on the main form save properly. My problem is that I have a usercontrol that is changed to a tabpage that I use to 'clone' tabs. Is there a way to save the cloned tabs along with there settings?

Multiple people use the program and the number of tabs and settings are different for each person.

View 4 Replies

VS 2010 Saving DataTable To My.Settings

Dec 21, 2010

I'm having trouble saving, or better yet, retrieving a datatable from user settings My.Settings. I've created a user setting of type System.Data.Datatable, and am able to save the datatable to it at run-time by setting it as an instance of the datatable I am trying to save, and assigning it that datatable as such:

[Code]....

View 9 Replies

VS 2010 Saving Colour Of A Brush To Settings?

Jul 23, 2010

i need to do is how do i create a brush color in my.settings? because System.Drawing.Color is not for Brushes is it?

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

Sharing Applicaiton Settings Across Many Applications?

Jun 28, 2009

Sharing applicaiton settings across many applications

View 7 Replies

Sharing Application Settings Across Many Applications?

Apr 28, 2011

I have several different applicaitons that were originally created with Visual Studio 2005 / .net framework 2.0 / Windows XP that got common settings from an App.Config file on a network share. Each of these applications has an app.config file with the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="\fileServerconfigcommon.app.config" >
</appSettings>
</configuration>

I am now trying to make these applications work in a Windows 7 / .net framework 3.5 / Visual Studio 2008 environment and can't seem to access the settings in \fileServerconfigcommon.app.config in the same way the old environment allowed. I'm wondering if there is some new way to do this. I need to have the applications read their settings from a common file on the network share (having the applications take their own copy is not accpetable).

View 5 Replies

Check To See If Applications Settings Are Null Or Empty?

Apr 7, 2012

I have some application settings that I want to put some error checking in and the below code does not work.

If My.Settings.SmtpServer = ("") Then
MsgBox("SMTP cannot be blank!", vbExclamation, "SMTP App")
End If

View 4 Replies

C# - Recording And Saving Sounds From Applications?

Oct 17, 2009

I Would like to make an appliaction in c# (or vb.net) that records every sound that comes out from the speakers when i tell it to, and when im finished i want to push a button and save it as an mp3 (or some other format).

So far i have only found APIs that can record something from a microphone.

Is there anything in the .NET framework or is there some API for making this possible?

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

Can Not Saving App's Settings

Jul 9, 2009

I've a project called G.S.S. There's a 2 forms in the G.S.S and a checkbox on the form2. I added these codes:[code]Then I created an another example project to try these on, added 2 forms, a checkbox on form2 and wrote same codes. I wondered when I run the app because it's running perfect. It saves the settings.So what's wrong with my G.S.S project?

View 5 Replies

Application Settings Not Saving

Aug 7, 2009

Unfortunately my settings do not get saved.[code]...

View 3 Replies

ArrayList Not Saving In My.Settings

Apr 21, 2011

I have been trying to get this to work for the past hour, I have an arraylist that contains string() items inside of it, I want to be able to save it and retrieve it.. When I try to save something to it and then close my application and turn it back on, everything I saved is gone.

View 3 Replies

Prompting Before Saving Settings?

Nov 3, 2010

I need to have my application to prompt the user to see if he wants to save the settings or not before the application exits.I got this to work this way: I added an event handler to My.Application.Shutdown. This event handler does prompt the user and save the settings if the user answers "Yes".But in order to stop the application to save the settings anyway via its regular way, I have to set My.Application.SaveMySettingsOnExit to falseAs I said, it works, but it just look like a bad logic to set SaveMySettingsOnExit to false to have it to save the settings saved on exit with a prompt.

My question is: is there a way to get it work like this:
-SaveMySettingsOnExit =true -- PromptBeforeSave =True ( Save and Prompt)
-SaveMySettingsOnExit =true -- PromptBeforeSave =false ( Save and no Prompt)

[code]......

View 2 Replies

Saving Advanced Settings?

Jul 14, 2009

I'm working on a project that users can add new tabs, buttons, textboxes, Excel forms(existing or new) or sth. else to the application. How could it be possible to save these changes?

P.S. : I started to learn SQL usage, and planning to use SQL in my project to save additional inforamtion that users have added.(for example informations about team members)

View 2 Replies

Saving ConnectionString To My.Settings

May 21, 2009

I would like to save my connectionstring in my.settings but this property is only readonly.When i would save it as a String, then I can't find it with the wizard for building a report. [code] is there also another way to build a connectionstring? this works, but the type of My.Settings. Data base String is a string and not a ConnectionString.

View 1 Replies

Saving Program Settings

Jun 15, 2009

Okay, i have this program that gives the user some settings that need to be saved and loaded when the program runs. Can anyone help me with this?

View 15 Replies

Saving Variables In My.settings?

Dec 13, 2010

Im studying vb coding at the moment and im designing a reasonably small text based game using the windows console and so far i have a nice working game but the main problem is that the game restarts when you end the console, obvious i know. Been trawling through pages looking at different ways to save multiple variables for multiple uses such as a save/load feature and most pages have confused me, people asking for help with commands im not common with. So far i've tried using my settings to save the variables in a test program but can't get it to work?I have in settings a variable called gold with a scope of user as an integer and i have this code to try and utilise it

Module Module1
Sub Main()
Dim answer As String

[code]....

View 2 Replies

Studio Not Saving Settings

Aug 2, 2009

I recently noticed that exceptions were not getting caught by Visual Studio (I'm using VS 2008 Standard) - e.g I could do this and run the program[code]...

and the debugger would not kick in and tell me something had gone wrong, the program would just continue running as normal.I remembered someone on here helping me fix this a while ago by pressing Ctrl + Alt + E to bring up the exception handling settings, so I did that again and ticked the Common Runtime Language exceptions box (Throw) and then all worked fine again.The problem is, this setting does not seem to be getting saved - each time I restart VS I have to set it again, which is annoying to say the least... especially when I forget and then get confused when my program isnt working properly.

View 2 Replies

VS 2008 Settings Not Saving?

Apr 5, 2009

I'm trying to save a setting I've defined under Project -> Settings -> FirstRun, type boolean, scope Application, default value, false,But it doesn't seem to work, this is my(the text box does not stop, every time I open the program it shows)

Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
If Not My.Settings.FirstRun Then

[code]....

View 8 Replies

Way Of Saving Control Settings?

Sep 23, 2010

I'm writing a search tool. Setting the search parameters requires adjusting the values of over 70 different controls on my form.I want to make a list of saved searches. Is there an easy way to do so? Does VB have any built in features to save and load the current values of every control on the form?I could code it by hand. But this would be tedious, especially up to 15 listboxes, where I would need to save each item in the list and note whether they are checked or not. I really hope VB has a way of saving the entire form at once.

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

Saving 2-dimensional Arrays To Settings?

Jun 30, 2011

I have two different 2-dimensional arrays. I assume the setting i need to save them to is a string setting, as is the cast with regular integer arrays. The first 2-d array I need to save is an integer, the second a decimal.

Let's say the settings are called my.settings.2darray1 and my.settings.2darray2
Let's also say the arrays are:

vb

dim 2darray1(50, 99) as integer dim 2darray2(50, 99) as decimal

What would the code be to load each array and save each array?

View 4 Replies

Saving And Calling Color Settings

Sep 12, 2008

i need to save time.forecolor's color setting and form1.backcolor's color setting eighter to a registry key or to a application setting any ideas how i can do this? [code]

View 5 Replies

Saving Application Settings At Run Time

Dec 9, 2011

I'm trying to save my application settings at run time, but im not noticing any change in the application settings window. Basically, whenever a change is made to the price of a room, i want to save it to the settings so it can recalled later on in run time and when the program is started up again at a later day. Heres the code im using;

[Code]...

View 5 Replies

Vb 2008 - Saving Settings Of A Form?

Jun 12, 2011

how do I save settings of a form like its background color, fonstyle, sontsize etc. I cannot save them as string or text into my access database.

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

VS 2008 Saving Control Settings?

Aug 22, 2009

I have a form with 31 checkboxs which i want saved when the user exits the form and two other buttons, One 'OK' and another 'Cancel'How do i save the checkbox settings when the user clicks the 'OK' button and not have them saved automaticly when the user exits the form?

I have setup the controls in the Settings of the application properties, i just need to have the checkbox checkstate saved only when the user clicks the 'OK' button and not saved automaticly by my application.Below is some code with the OK button that saves the settings and the Cancel button.

[Code]...

View 6 Replies







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