VS 2010 Storing Application Data Within An Application

Jan 8, 2012

I was wondering if it's possible to store application data within an application without storing the data in an external file. For example, in my application, the user can choose where he/she would like to store the files that the application creates. I need to make the application remember the location that the user specified. I've tried using My.Settings to save this information, but since my application is standalone, if the location of the application changes, the My.Settings information changes as well (unless I coded it incorrectly before). I would prefer not to store this data in a .txt file or something similar.

View 10 Replies


ADVERTISEMENT

Storing 3 Tables Of Data In Application Settings

May 16, 2010

I will need to store 3 tables of data. Instead of implementing an entire database backend, I just want to store the record for these tables in application.settings.I don't care about security. Is it advisable to do it with application settings? how else would you do it? Perhaps storing a matrix in application.settings would be OK?

View 4 Replies

VS 2010 Storing Backup History In Application Settings?

Jun 8, 2011

I'm creating a small tool for our team that performs backups of our servers. The plan is to put the tool in a central location so that anyone can use it.I'd like to store, somewhere, the date of the last backup for each server. I was wondering if I could use an application settings (with Application scope) for this? Is this bad practice? If so, what's the best practice? XML? text file? registry?

View 6 Replies

Storing Values In Application?

Feb 14, 2012

I am trying to store things such as user data for each user in my program, like with a class I made named UserData. I would like to have data different for each user. How can I do this? Also, I need to be able to access other user's data from my account.I tried using Settings, but they only had a limited number of classes, and the settings didn't seem to save for some reason.

View 13 Replies

Asp.net - Storing A Custom Object In A Web Application

Jun 14, 2012

I am at a new company and I am building a wizard for a web app, (.Net/4.0). The user goes to a few separate screens during the wizard process and must return to the original screen before completion of the wizard. This is different from how they normally do this. But this is how it is TO BE DONE.

One option is to store the result of each panel in the main screen in the DB. So then, when the user leaves & redirects back. I could check for a querystring then call a datareader and populate original values appropriately.

[Code]...

View 2 Replies

Storing Persistent Objects In VB Application

Aug 31, 2011

point me to the best way to store persistant objects ( of my own class) in a vb application? I am putting together a simple family recipe application and have created a food item class. I would like to store the instances ( food items) indefinately so that they are there each time I start the program complete with all properties and meethods

View 14 Replies

Storing SMTP Credentials For Application?

Apr 8, 2010

I've been storing SQL connection strings in web.conf which is fine but now I need to store SMTP credentials somewhere protected. web.conf seems like the likeliest place since its protected but how can they be stored?

I've added the details to my web.conf but amnot sure how to reference them

<system.net>
<mailSettings>
<smtp>

[Code].....

View 1 Replies

Storing Strings And Application Settings?

Jun 25, 2010

I've came to the stage where i need to save strings and application settings for my application. The My.Settings have worked it out until now. Now i have to store so many settings it's hard to keep track of them. That is why i need something new. So i've been looking around in INI files which seems impressively simple - but not very flexible. I've also took a look at XML which seems to be something to dive in to. But what i need now is advice. How do you store settings?

View 11 Replies

XML Files - Storing Information For Application

May 22, 2009

I am making a program that stores information for my applications. There are 4 main things I need in the XML file, the login information (User name and password), Application names and keys, and the owner of the application (who bought it). The program allows the user to enter as many applications and owners as they want and once login information is correct it loads the data. Then on exit all the data saves to a XML file.

My XML file looks like this
<Data>
<Login>
<UserName> (UserName) </UserName>
<Password> (Password </Password>
</Login>
<Applications>
[Code] .....

View 6 Replies

Storing Application Variables In An External File?

Jul 8, 2009

I have been tasked to create an application, for which the requirements may change over time.This application will be a data entry Windows application,of which multiple copies will be running.All data will be written to text (.CSV) files for validation before being uploaded to a remote mainframe system (iSeries).My application needs to store certain variable information in an external text (or XML) file; for example, the file path to shared resources (which may change over time),as well as the specific data fields required by the mainframe system.

My questionsare these: what is considered the best practice for accomplishing such a task, and how would I accomplish it?I am completely new to XML, so I don't even know where to begin, although I am sure that XML is the path to follow for what I am trying to accomplish.

View 1 Replies

Storing Files Into An Application Compressing Them And Then Extracting Them?

Apr 8, 2009

How could I go about doing this if I can? Storing files into an application compressing them and then extracting them?

View 1 Replies

VS 2008 Storing Ftp Password Into Application Variable?

May 16, 2011

I have an application that is updating from my ftp server.Inside app I have 2 variables like this:

myFtpUser="ftpuser@mydomain.com"
myFtpUserPassw="myftppassword"

I obfuscate exe using Eazfuscator.For two times someone deleted all files from ftp account,I suppose he got the ftp password,is it possible to got it from my app exe ?Is it enough protected ?

View 10 Replies

Application Settings, Storing Type Internal To Your Assembly?

May 13, 2009

I am trying to store an enum in my application settings. This enum is defined within my main assembly in the same namespace. When I try to find the type under the application settings, it seems like I can't find any types within my namespace. I can see all the types of the assemblies I reference though.

View 2 Replies

Storing 2005 Connection String, Username And Password Outside The Application?

Aug 13, 2009

Does anyone know how to store the connection string in a file rather than hard coding it in the application. For example i have declared this connection string in the form to connect to oracle database and it works. But i assume this is not the right way to go by if one is looking for more secured environment.

strcon = "Provider=MSDASQL;" & _
"Driver={Microsoft ODBC for Oracle}; " & _
"CONNECTSTRING=(DESCRIPTION=" & _

[code].....

View 9 Replies

Is Storing Image File In Database Good In Desktop Application Running In Network?

Oct 21, 2009

I recently came across a problem for image file storage in network.I have developed a desktop application. It runs in network. It has central database system. Users log in from their own computer in the network and do their job.Till now the database actions are going fine no problem. Users shares data from same database server.

View 7 Replies

Storing Image File In Database Good In Desktop Application Running In Network?

Aug 5, 2010

I recently came across a problem for image file storage in network.I have developed a desktop application. It runs in network. It has central database system. Users log in from their own computer in the network and do their job.Till now the database actions are going fine no problem. Users shares data from same database server.

View 3 Replies

Converting My Windows Form Application In VS 2010 Into A Run In The Background Application

Jan 17, 2012

Final step in my application. I finally got all the requirements working, but now I need to have the application run in the background.

The application was written in Visual Studio 2010 VB, Win form app.

The requirements are as follows:

1.) run the application at start up

2.) no icon

3.) always in focas

4.) always runs in the background.

Here's the full code I have right now (working! whahoooo)

Public Class Form1

Private Property count As Integer
Private s As New Stopwatch

[CODE]...

View 2 Replies

VS 2010 Cannot Download Application, The Application Is Missing Required Files?

Feb 25, 2011

Every time I compile my application, during install I get the error:Cannot download application, the application is missing required files

View 3 Replies

VS 2010 Retrieve Currently Active Application Window From Another Application Just Starting Up

May 26, 2011

I am in need of a small application, that will allways be topmost and will send keystrokes to the last active application (typically notepad or an explorer window). My problem is retrieving the current active form (or application), when my application is started up. Every search seems to return old and rather complex solutions using Win32 library functions, but I was kinda hoping, that .Net allowed for a neater and more simple solution.I need a code example or link on how to retrieve the currently active application window from another application just starting up.

View 2 Replies

When Developing A New Windows Application And Web Application Using VS 2008/2010

Dec 7, 2010

I want to learn programming techniques so can make both windows and web applications more user-friendly, faster, safer, reliable and easier to deploy.

View 4 Replies

VS 2010 Philosophy On Storing Data?

Dec 28, 2010

There are "text" files, there are databases, I used to use a record (now called a structure) in a ".dat" file, but I'm having trouble finding documentation support in vs2010. So I'm thinking maybe it's time to move up to ... ? databases? ".txt"s? The current app I'm trying to write will only have a couple of hundred "records" at the very most; Old vb6 command like LenB which would return the size of a file in bytes is no longer, and I can't find how len( .."as byte" of file) would actually be implemented. len( <filename>, as byte) isn't the correct syntax - what is?

Is there some thing less dramatic than a full blown database? Or getting used to how a database uses SQL and all that goes along with that shoud be something to get handy with?

View 13 Replies

Arrays And Storing Data To A File VB 2010

Feb 6, 2012

I am trying to store 8 separate pieces of information in a text file (like a database) [but not a SQL database], consisting of integers and strings. How would I use an array to do this? Will an array collect data from text boxes (I also want to display the 8 pieces of information in separate boxes). also how would I save the text file so I can open it again or open a different text file (database?), from within the program?

EDIT: I see I need to use readline and writeline to read/write from a text file but how would I find specific data to show in my boxes?

View 1 Replies

DB/Reporting :: VB 2010 Storing And Retrieve Data?

Jul 21, 2011

What is the easiest method of storing data and retrieving it using VB? FYI, I have not used Access before. It will be a movie database that stores title genre, etc. I thought about using a text file but i think thats crude and ran across this site:

View 1 Replies

VS 2010 - Storing Data In Some Type Of Variable

Jan 19, 2012

I have data that I want to store in some type of variable where I can easily access when needed. For example I have:
google.com -> This is a cool website.
yahoo.com -> News website
gmail.com -> Mail website

I want to be able to store those in some type of group so if I go like:
get data of google.com without going through a loop.

View 2 Replies

VS 2010 : Storing Data In Txt File For Program Use?

Jun 22, 2011

In the program I'm working on, there is a 'sign-in' form that pops up for the user to enter first name, last name, and DOB. What I want to do is STORE that information in a text file for FUTURE use by the program (i.e. displaying a list of all previous users of the program).I already know how to use streamwriter to write text to a file, but I would like for the text file to be stored within the program files and also for a new user's data to be appended to that file every time.

Do I simply add the text file to the project files? When I do that, its path is 'My Documents'. How will that affect the program when I publish it? I guess I just don't yet understand what happens when the program is finished and published. The code for the 'Submit' button on the sign-in form is pasted below. At the bottom, I've put a comment to indicate where I want to store the data to a file.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim TxtBox() As String = {TextBox1.Text, TextBox2.Text, TextBox3.Text}
For i As Integer = 0 To 2
If TxtBox(i) = Nothing Then

[code]....

View 13 Replies

VS 2010 Storing Data Along With List Box Items?

Sep 19, 2011

What I'm trying to accomplish is first of all, adding items in a list box, but while doing so, store data into that item so when the user clicks on it, the data will be brought up into the correct text boxes.

My idea on how this will all work out has to do with array lists. I'm thinking each time an item is added to the list box, an array list is generated containing all the data from the text boxes. The array list would be named as the text of the list box item.

So then when the user clicks on one of the items, it can find that array list easily because of the selected index, and then update the text boxes with the data.

Is the way I'm thinking of possible? If not, or if there is an easier what, what would that be?

View 12 Replies

VS 2010 - Storing Text Data In File For Program Use

Jun 28, 2011

Here is what I would like to do:
- Store string data from a 'sign in' form into a text file. This text file must be one that is saved even after the user exits the program. The text file must also be one that will stay with the program even after it is published (executable).
- Be able to write to/read from the file for purposes of displaying some or all of that data on a form.

I use an Application Setting to do this - of type 'Specialized String Collection'. I tried this, but for some reason I could not get it to work. It was a good idea, but I need to be able to SEE the data that has been saved, and with a setting it seems like that is not easily done. I've decided that I either need to use a simple text file or a 1-table database for this. I would prefer just a text file, but in either case, it needs to be part of the .exe when published.

I have added a text file to my project, but I am not sure if it will be "included" in the project when I publish it. The path of the file I've added is in 'My Documents', but in my code, I will have to specify the path in order to use Streamwriter. How will this affect the program when I publish it? I felt the need to make a new thread because on my last one we had been mainly talking about settings, and I've decided that isn't the best option for me.

View 1 Replies

VS 2010 Application Hangs While Moving Data From Text File To Datagridview

Jun 22, 2012

I have a text file which contains large amount (around 44,948 rows/lines & 9 columns) of delimited text data in a text file which I want to populate onto a DataGridView table. I have written the below code, but the application gets hung for the rest of the time & so I have to stop debugging the program.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As New IO.StreamReader(fileLocationTxt.Text)

[Cdoe].....

View 5 Replies

Pass Data Application To Application

Aug 15, 2009

I was wondering if it was possible to pass data from one vb.net application to another vb.net application? If yes, how is this done?

View 5 Replies

Send Data From A C++ Application To A VB Application?

Jan 26, 2011

How can I send data from a C++ application to a VB application?Or the other way around, read with VB the data from de C++ application.Is it possible like a setvalue or getvalue command?

View 3 Replies







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