Store Info In My.Settings?

Dec 2, 2008

I have a structure like this[code]...

How can I store this in my.settings? When I select browse to find the type, or simply type in "Register", it does not work.

View 1 Replies


ADVERTISEMENT

Store Three Items In My.Settings / Where Are My.Settings?

Jun 28, 2010

I store three items in My.Settings. One is a serialized string, and the other two are GUIDs. When the main form starts, those three items are loaded into various places. On rare, and so far unpredictable, occasions, one of these GUIDs is notably absent. The others may or may not be, I have yet to be able to check. Since it happens so infrequently (twice this month, though I have been working on the code every day), I'm having a very hard time tracking down the problem. However, it got me wondering where these values are stored. I see one of them showing up in App.Config, though without a value. Is there a place I can see the others?

View 13 Replies

How To Get Info From Textbox And Store In TXT File

Dec 2, 2009

I need a piece of code that will take info from a textbox and store it as a txt.file. Also how would I go about taking info from a combobox?

View 6 Replies

Login Form To Store Info?

May 13, 2009

I have just added a login form to my main form which just has a username textbox and a password textbox. What i basically want a user to be able to do is enter their username and password into these fields and then for the form to store the values there.

So if they enter their username and password, and then click OK on the login form, if they were to open up the login form their details would still be there?I want to be able to call on these values else where? How do i store the info in the username and password fields? And if they then closed the form and opened it up again would it still remember what username and password had been entered?

View 7 Replies

Store Info During Application Runtime?

Jul 1, 2009

I am making a video conversion tool. I have a listview with one item per file.And i also have options to add subtitles to movies. I want it to be like this:Say the user add 2 movies. He select the first movie in the listview and then go to the subtitle tab beside. There he checks a checkbox so he can add subtitles. Some controls comes up that allows he to browse for subtitle and select which language the subtitle is. Then when he has selected these options, he select the other movie, the program saves the subtitle data somewhere and then erases all fields so he can fill them with a subtitle for the other movie.

My.Settings is way to simple for this. But i don't want SQL or db related stuff.Is there a good storing way i have missed?

View 4 Replies

Make A Program That Holds Info In The Settings?

Mar 24, 2011

i am trying to make a program that holds info in the settings... it holds it in an array so that you can add to it and take away from it... he is the code i have so far....

So far it is just the adding part but im still haveing some problems...

Public Class Form1
Public Function array_use1(ByVal array_string As String, ByVal number As Integer)
Dim num_holder As Integer = number

[Code].....

im trying to get this done so i can demonstrate how it works to some friends.

And also note that i dont want you to like write out a bunch of code then tell me its the right way...

View 8 Replies

VS 2008 Mysql Loads Info Into My.settings

May 23, 2010

I would like to know how to make it so that when someone logs in to my program. MySQL takes their info and loads them into My.Settings Like MySQL Username(Their username on the table. Not the mysql username) = My.settings.username MySQL Amount of money = My.settings.money MySQL Level = My.settings.level

View 4 Replies

User Entry Screen To Store And Retrieve Info

Apr 10, 2011

I am trying to learn VB.NET and I've written a user entry screen to store and retrieve information. I keep getting this error. I understand that I have to either change the ref value from the calling code, but my problem is where is the calling code? Here is the error I'm getting (the program is underscoring udtTrans in the FileGet line in this segment).

Private Sub viewRecords()
'open the file and read fields of the first record into the textboxes
Try
FileOpen(1, strFilename, OpenMode.Random, OpenAccess.ReadWrite, OpenShare.Shared, Len(udtTrans))
FileGet(1, udtTrans, intCurrentRecord) 'gets first record
[Code] .....

View 2 Replies

Using Collection - Store Info Of Employees On Daily Basis?

Aug 25, 2010

I am trying to come up with a way to store 3 pieces of information for each employee in the company on a daily basis. So for instance:
Day 1: Joe, 8, 80
Day 2: Sam, 10, 90
Day 3: Bill, 5, 40
Day 4: Bob, 8, 40
Day 5: Sue, 2, 50
I am very new to collections and most of the applications that I build are Create, Read, Update and Delete type applications that don't really need arrays so I have almost no experience with either.

This is what I have so far.
VB
'
Dim iDays As Integer = NumberDaysPerMonth(Date.Now)
Dim DayNumber(iDays) As Integer
Dim EmployeeRecords As List(Of String) = New List(Of String)
For i = 1 To DayNumber.Count - 1
[Code] .....

View 4 Replies

Using The Split Command To Store Info From A Text File?

Apr 17, 2009

I am writing a program that lets someone click on a picture to vote for their favorite pet. The part I am stuck at is: when the application is opened and closed it needs to remember how many votes there were. To do so, when the program is closed I have the information stored in a .txt file. it looks something to the effect of:

name, type, votes
andy, bear, 0
bart, dog, 0
candy, cat, 0
hopsie, bunny, 0

[Code]...

View 4 Replies

VS 2005 Store Secured FTP Site Info In App.Config?

Dec 9, 2010

know open an xml file into a datagrid. The xml file is stored in a secured ftp with username and password. Just as an example if the site ftp.mysitesite.com, with username "xxx" and the password "XXX" has the file 123.xml, then how do I load 123 into a datagrid. Is it possible to store these info to a variable in app.Config and use that variable to access the site?

View 5 Replies

Store An Array In Settings?

Mar 15, 2011

I want to store a regular array in My.Settings. Not an ArrayList, not a StringCollection, just a string Array. Can this be done? If so, how is it done? I can't seem to find the string array datatype in the settings designer in Visual Studio.

View 3 Replies

Store Bitman In My.Settings?

May 3, 2009

How I can store a bitmap in my.settings?

View 1 Replies

Using An .ini File To Store Settings?

Feb 26, 2009

I am using an .ini file to store my settings, so they are editable. But the thing is, it wont redirect? I had it working some minutes ago, but now, it just gives me a white page.. It didnt do that some minutes ago Here is my whole code, as it would take time to split it all that has with .Ini file to do.

[Code]...

View 8 Replies

Use A Settings File That The Program Opens And Reads The Info From?

May 30, 2009

Im trying to use a Settings file that the program opens and reads the info from when it loads BUT when the user chooses a custom color (ex: ff5f67d6) How can i assign the form background color to that color code?

Dim BgColor As Color = ColorTranslator.FromHtml(Settings(0))
Me.BackColor = BgColor
Settings(0) = the color code

that is the code i tried to use that doesn't work

View 7 Replies

Log / Store Info And Display In Sortable Multiple Column ListBox

Mar 31, 2011

I am wriing a vb.net windows application to log and store information. then display it in a sortable multiple column listbox (I personally like FlexGrid by Component One). However... I am not sure how to go about storing the information. Should I go with a .sdf file database, registry, simply storing them in a file, or some other method?

What I need is to be able to:
read/write/delete from it
read possibly up to a 20mb file and sorting it without a lot of lag
be transported to multiple systems and maintain these writes (installed on many systems)

I know I could split up the reading/writing to anther thread. Even to other .DLL's and whatnot. But as for storing. Not sure what the best option is.

View 1 Replies

Store HUGE Strings Without Using Settings?

Apr 21, 2012

Is there a way I can store HUGE strings without using settings? Or storing it outside the program?

View 1 Replies

Store Settings/Resources Internally?

Feb 1, 2009

Does anyone know how to store settings/resources internally?I have this code (example).msgbox(my.settings.message)But this method generates a .resx file with the application.

View 3 Replies

Use My.settings - Store Text From A Textbox?

Jun 3, 2009

I want to find out how I can store text from a textbox, close the form and next time when I start it again, I want to load the text into the textbox that was previous entered. I have created a new application setting thing as a string. then in the textbox1_textchanged event I wrote

[Code]...

View 4 Replies

Using My.Settings.something To Store Persistent Data?

Dec 27, 2011

You know how using My.Settings.something to store persistent data is done only for user settings and not application settings. This information is stored in the registry on the local user section.My problem here is that even if it is in the same machine, when a user changes some setting it is not reflected on other users. This is desirable for some of them but there are a few I would like to keep for all users.Is there a way to do it with the settings? Do I need to write to the registry in the machine section? or do you just recomend I create a configuration file?

View 5 Replies

Where And How To Store Application Wide Settings

Oct 25, 2010

i need to store Application wide Settings in my Application like:

Connection to DB (Servername) Username/Password Registrar/Serial etc. I think there are basically two Options:

Store them in the Registry Store them in an Application Settings File Using one of the methods above is no problem, but under Windows 7 my Application running in normal user mode allows me only to store user specific data. For example inside UserAppDataRegistry, UserAppDataPath etc.

But when i want to use e.g. CommonAppDataRegistry to write my Data in, then i get no access to it, due to missing privileges.

Now my question:

Where and how to store Application Wide Data? How are others doing this? When i purchase an application and install it on my pc, it asks me for Uusername and Serial. When i insert it then it saves it somewhere without asking me for Administrative Privileges or something else.

View 14 Replies

Where To Store Application Wide Settings

Dec 28, 2009

I have a license form that i wish to save the information or just system wide information for that matter,I know about the my.Settings - however this will only save for a specific user and the aplpication scope you can not write to.Where is the best place or the normal practice of saving application wide information?

View 7 Replies

Create A Custom ListViewItem Class To Store Additional Hidden Info?

Apr 29, 2011

I want to store additional information about a listview item using a custom class, but I can't seem to get it to work.I'm currently using this code to accomplish something similar using a listbox item.I just want to do the same thing with a listview.

Public Class myListboxItem
Public id As String
Public rootFolder As String[code]....

I forgot to add "Inherits ListViewItem" to my class.I'll update the code listed here to serve as an example for others.

View 1 Replies

Store The Settings In A Text File Or Database?

Jan 2, 2010

I'm working on a project right now that basically prints a string to the field that has focus in internet explorer and there's quite a bit of user specified information that needs to load when the vb program loads. Should I use a text file to store and retrieve the settings or a database? I'm a new programmer and I don't really have a clear idea on when I should use a text file compared to a database or the registry to store info. Also, if I use a database like access 2007 for example, wouldn't an end user run into an exception if they don't have that software installed on their comp? Is there a universal database format? I've linked some screenshots of the prog if you want to get an idea of how much info I need to store.

[URL]

View 3 Replies

VS 2008 Settings Store A 1-Dimensional Array?

Feb 15, 2010

I'm working on a program that generates random values for a byte array thats length is 16.I have already devised the generation method, but I want to use My.Settings to store this...but I haven't seem to have located Byte() for My.Settings.

View 2 Replies

VS 2008 Store Some Configuration Settings With Time

Mar 20, 2011

I am developing an application, and i need to store some configuration settings, with time, i will need to add some more configuration settings. Am thinking of three alternative to implement that will me easy to access without much coding and efficient sqlite, xml, and application configuration file..But am concerned about security, because some personal data will be saved together.

View 2 Replies

VS 2008 Where To Store Settings For Windows Service

May 13, 2009

I've written a windows service in VB.NET 2.0 and the service needs to know a few file paths and other settings when it starts in order to be able to do what its supposed to do. These are settings that users of my service need to be able to configure themselves so I cant hard code them in.At the moment I just have the service look for a file named Config.INI in the same directory that it is being run from and if this file exists it attempts to read the settings in from there... this works perfectly, but it just feels a bit clunky and old. If it was a normal windows app I would store the settings in an XML file in the user's application data folder or something but as this is a Service then thats not possible as it is not run by any one user (well technically it is, the Local System account). I then thought about using the registry but I seem to recall people saying that you should avoid storing settings in the registry if you can really, especially with the new security in Vista and Server 2008.

View 6 Replies

XML Writer - Store Some Settings For Program In An XML Document?

Nov 11, 2009

I'm wanting to store some settings for my program in an XML document. I've found plenty of places that allow you to write an XML document to somewhere on the hard drive although I'm wanting to link it in with the project so when the program installs it setups up the XML as well. This is also so when the program uninstalls it removes the XML.So I was wondering how I would go about writing to the XML document in my project, could it be done with Linq?

View 2 Replies

[2008] Store Comnnection String In My.Settings?

Jan 12, 2009

how to store the connection string to my Access mdb in my project's My.Settings ?

View 4 Replies

How To Store An Instance Of A Class Which Inherits From NameObjectCollectionBase In Settings

Nov 30, 2010

I have created 3 classes which inherits from(System.Collections.Specialized.NameObjectCollectionBase)

The first class "SQLCommandsCollection" stores "SQLCommands" in a collection.

The second class "SQLTableNamesCollection" stores "SQLCommandsCollection" objects in its collection.The Third class "SQLDBNamesCollection" stores "SQLTableNamesCollection" objects in its collection.

Ultimately I will sit with a "SQLDBNamesCollection" collection which contains all Table names and its respective SQLCommand objects.

I would like to store this "SQLDBNamesCollection" object in my.settings("QueryViewerQueriesPerTableNamePerDBName")
at runtime but I am unsure what this settings type should be.

I have tried system.oject but this does not seem to work as I get an "Unable to cast object of type 'System.String' to type 'Fusion.SQLTableNamesCollection'" exception when I try to retrieve from settings. See below code.

[Code]...

View 6 Replies







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