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
ADVERTISEMENT
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
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
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
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
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
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
Aug 7, 2009
Unfortunately my settings do not get saved.[code]...
View 3 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oct 14, 2009
I have the creating INI file down, but how would I get it to read the text and then, based on the text there, make things checked/unchecked
Dim SaveFile As New StreamWriter("Settings.ini")
View 7 Replies
Sep 12, 2011
My question is , i have just made a project for my appointments like, Name,Date,Time and Notes and all viewed in a listview grid but how would i save the entrys ?Like to save 1 line i can easly use my.settings but how about mutliple lines ?Here is a screenshot:It would be best to save it into the program like my.settings or something
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lSingleItem As ListViewItem
[code].....
View 26 Replies
Dec 12, 2009
Okay so i have a problem with saving the users settings. Okay i have about 50 check boxes on my frm1.So for example if the user clicks on check boxes 1 and 2 the next time when the user starts the program i want check box 1 and 2 to be checked
[Code]...
View 15 Replies
Jul 27, 2011
In VB.net I have a matrix object which I'm trying to save away in application settings and Im not recovering the settings correctly.
[Code]...
View 3 Replies
Mar 3, 2010
i have a form with some checkboxes on it i want to save those settings.
how can i save the settings
View 3 Replies