Store 2/3 Records Windows Application?
Aug 13, 2009
I am going to develop a Windows application in .net and I will be string few values. (A max of 20 values).
What is the best way of storing this? Using SQLIte seems to be a overkill.
My.Settings seem to forget the values sometimes.
What is the best way of storing these values?
is XML okay?
View 5 Replies
ADVERTISEMENT
Jan 11, 2010
I'm making a windows form application using vb.net and have an options page where I need to allow users to enter a few settings, these need to be stored somewhere on the machine so that they can be found again if the program closes
View 4 Replies
Jan 30, 2011
I am creating a windows application using visual studio. I want somehow to insert an excel file into the application so the user will be able to download it from the program and save it to his computer. This means that the file will be a part of the program. There will be a button that will prompt the user to save the particular file somewhere so he can then view it.
What should I do in order to "embody" the excel file to the application? And what code should I write to link the file with the button?
View 8 Replies
Apr 28, 2010
How would you store records in a textfile to an array, so you could display it on a series of textbox(ie. firstname, lastname employee number etc.)
View 7 Replies
Dec 4, 2008
I am writing a VB 2008 program to display and update records from a sql database. This particular form is used to display and modify retail store information records from the database. I am running into an issue with saving the records once they have been changed.The error message I am getting is "Update requires a valid update command when passed DataRow collection with modified rows". I am including all of my code for the form because I am not sure what is relevant. I am getting the error when SaveTheEdit() is called on line 83. [code]
View 2 Replies
Jul 12, 2011
Which is the best way to store application and user settings of an application running with multiple instances?My problem is that using the vb's "Application Settings" one instance would overwrite the other one.I want to identify each instance with a number passed via command line argument. I could use this number to identify the appropriate settings of the running instance, but I see in a local INI o XML file a better way to handle that.
View 1 Replies
Mar 22, 2012
I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.
So far I have this --
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
[CODE[...
View 14 Replies
Mar 16, 2009
I'm new to desktop applications. My goal is simple: A user enters in their first name, last name, email address and phone number. They hit submit, it verifies they entered in proper data and then it stores the data into a local db inside VS. I have never used data sets and table adapaters before so I'm having trouble storing the data into the local DB ..
View 2 Replies
Mar 7, 2012
I have a scenario that has been troubling me for years. If you have to connect to a database or other service (like a web service) using a username and password, where would be the safest place to store this information if you are connecting through a .NET assembly? I understand that you would have to encrypt the password, but then you run into a kind of chicken-egg problem -- fine -- you can encrypt it, but then where do you put the key?In .NET, you can't hardcode the password because you can decompile .NET code.
I looked at using assembly based rights with Isolated Storage, but MS recommends against storing unencrypted secret items there because priveledged users can gain access, so again, we are moving the problem from point A to point B. So for examplem, a domain admin with no need to know about the information in a database would be able to get access because of the ability to be an admin on any workstation on the domain.You can encrypt App.Config and Web.Config, but I believe priveledges users can access the keys. I think you run into the same problem with DPAPI.
I had considered storing the passwords, encrypted in a remoted database and getting them through OS authentication, but our department prohibits the storage of passwords on database servers. I am pretty sure I am stuck and wanted confirmation.
View 3 Replies
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
Jan 14, 2010
Testing out a VB.net prog in Windows 7 that works ok in Vista and earlier. The users can set various options and save them for next time. In pre Vista this goes in the program directory in program files, in Vista it is transparently put into the user's virtual store.However, in Windows 7 trying to save the file gives an access denied error although the virtual store exists as for Vista and other apps appear to be using it ok.
View 3 Replies
Mar 2, 2009
Not in the Debug directory or any directory, I actually mean within my program Is there a way to add the exe to the My.Resources or something similar and execute the application that is stored within my application. I have tried to do a Process.Start(Myexe'sName), but I have a feeling that looks for an exe outside the actual program, directory
View 8 Replies
Jul 10, 2009
I need to store a value globally (application level). This is part ID retreval program, procedure will return teh Max ID number thena i need to store the retreved value gloablly, so that if the user open many intance of teh same form i can use the gloabl value, to send Unique ID numbers to each form.
View 4 Replies
May 28, 2009
I have a query that brings back a result that I want to be able to use on all forms in my project. Is there a way to store this until the application is terminated?
For example,
I'd like to store the result of this:
Dim ssSQL As String = "SELECT ClaimNo, Custodian, Activity, Code, DateStamp FROM [Activities] WHERE "
ssSQL &= "[ClaimNo] Like ('" & txtClaimNum.Text & "')"
[Code].....
View 6 Replies
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
Feb 16, 2011
for an example I'm making an RPG game for learning purposes and I have several modules, each for storing different data (one for items, one for enemies etc).I'm storing each item or enemy in a structure in the module so it's easy to find and obtain the values and makes it easier to add more when needed. I'm sure there's a easier way because at the moment I'm storing it like this:
[Code]...
As you can see, I have all the weapons(which are in a structure) nested into another structure called "weapons" so it's easier to find.Is there an easier way to store the data and make it still readable, obtainable and easy to add more weapons later on.To display the stats on the currently selected weapon I have to test for which weapon is selected and then several lines of code just to display the stats for that one weapon.
View 7 Replies
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
Apr 23, 2009
I have an ASP.NET application. It resides within another ASP.NET application. I put my DLL in the other apps bin folder and have a subdirectory with my aspx files. I can't edit the main app's Web.config.
So where can I store configuration settings? For example, this is an app that will get deployed to various clients. I want to store the client name used for display in the headers and such. And the location of a logo file.
View 3 Replies
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
Aug 30, 2011
why cant i display my 2 table records in two datagridviews in windows form? it only display the records of table 1 to the 2 datagrid views
[Code]...
View 3 Replies
Sep 29, 2009
With the following code i am able to update record in the first row. Can some tell me what i have to replace in this code to update a record for a selected row. I have a field "Sr_No" with primary key.[code]...
View 2 Replies
Mar 18, 2012
I'm working on a simple data logging program, and I have little to no database experience. I wrote a little VB forms app to log the data to ms access and then graph the data, but I'm having trouble with adding records to the database. First, I created a simple one table database in access. Then, I added the database to the project as a data source, and gave it a data set using the wizard. Right now my code looks like this:
[Code]...
There are no problems during build or run time, but I do not see changes to database after the program runs.
View 1 Replies
Sep 29, 2011
I want to create an application which acts like a file cabinet, where in i can store all my files viz. xls,doc,msg. So that i do not have to look for my files in hard drive, i can open an application and retrieve it from there.My application will be a standalone application whose data is stored on the location i mention in the application.Is it possible to build an application like this.
View 6 Replies
Mar 30, 2011
i want to create an application to store all the source code snippets and help information(as i keep learning vb.net) to refer to when i forget or need help.i came across this software.., [URL]
i want to create a similar application. how do i go about creating it? does it require a database? if yes, what kind of database?
View 2 Replies
Jan 8, 2011
I'm trying to make a application with a login system. I want to store user and password information, into the application. So I can access it from my administrator account. I have tried to make a textbox for every username and password,And then save it into my.settings And then I run the finished application, it works fine to store the information. but if I copy the application after I had entered some user/pass information. All textboxes I blank on the other computer.
View 4 Replies
May 17, 2009
I'm trying to figure out how to do this as I'm not sure what's the proper way of doing this.
I've got several strings that I want to store/save permanently, even after the application is closed. How should I proceed? Do I read or write from a textfile?
View 7 Replies
Aug 31, 2009
I am trying to build a retail store application that uses a barcode reader. I need to know how to get the barcode data in my application and use it against my items database.
View 2 Replies
Feb 2, 2010
i've got a free mysql database online hosted by 000webhost, i'm just wondering if i could connect to the mysql database, and if so what would the connectionstring be like? when i connect using php its something like this: new mysqli("mysql13.000webhost.com", "user", "password", "database1"), how do i translate this into a vb connection string, i can't decide what to put as the data source [code]if there's no way to connect, is there anyway for me to create an application that can store and access database online?
View 7 Replies
Aug 18, 2009
I have created an updater for our clients application. The way the updater works is to download all the updated files and store them in a temporary folder then check the file hashes. If everything is ok it will copy the files to the applications installation folder. Once this is been completed it will delete all the updated files in the temporary directory.
My problem: I am looking for a directory that will be available for XP, Vista, and Win7. I was thinking about the 'temp' directory.
View 2 Replies
Jan 19, 2010
I have a table, lets call it Objects. It has a predefined set of records looking like this:
ObjectId ObjectName
1 Salmon
2 Trout
3 Seabass
4 Shark
Etc..
So, this I would like to implement somehow as an enum. But what's the best way, implement it in the database creating tables for it or in the application logic in an CommonEnums codebehind file etc?
View 2 Replies