VS 2010 Make Application Save To A .txt File
Mar 14, 2012I need program so it saves and saves to a .txt file and so that it can save up to a maximum of 20 times
Public Class Form2
Dim num1 As Integer
Dim num2 As Integer
[Code]....
I need program so it saves and saves to a .txt file and so that it can save up to a maximum of 20 times
Public Class Form2
Dim num1 As Integer
Dim num2 As Integer
[Code]....
I was thinking to make an app to save images [or download images] to local hard disk. But to keep it easy, I want this app to create a small picturebox on form to show the thumbnail of downloaded image. Lets say a 5 pictureboxes has to be added with the thumbnails to show the recent downloads. A user can save the location where he wants to save the files on hard disk. A listbox or a dropdown menu will help in categorizing the images, like image1 in friends section, image2 in family section, image3 in others, etc... When the program restarts all the latest 5 thumbnails has to be loaded in pictureboxes and the directory that was chosen. Finally, a button that shows the downloaded images into original image file size one by one or a slide show. Is it possible to make such program?
View 2 Repliesim making some stuff using VB 2010 recently (im new to VB 2010) and well...i wanna make it into an executable file, how do i do it?
View 1 RepliesI first want my program to get the text from a text file(I know how that's done), but once it gets it, I want to somehow save it that it won't need to get the text again(for example, if you restart the application, it won't need to get the text from the file because the text is already saved).
View 1 Repliesi have a problem to make a save and load button on my application.this is what i want:if i click on a exit button then need there show a window with "would you save youre settings" yes no cancel and i got more then 1 thing to save (it is a sidebar)can someone tell me pls how to do this ( don't use hard words to understand because i am pretty new )
View 1 RepliesI'm trying to get a save file dialogue to overwrite a file with the same name.
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
If RadioButton16.Checked Then
[code]....
I keep getting an error saying "Unhandled exception has occurred in your application." Then the next paragraph says "The process cannot access the file 'E:Copy of Release+Fontsob.txt' because it is being used by another process."
Trying to make a save file dialog for this program. I have it working without syntax errors but its telling me "empty path name is not legal" and gives me a "Argumentexception was unhandled".[code]
View 13 RepliesI finally found it out. i can add my files to resources. so anyone can save it Dim b() As Byte = My.Resources.resourcename 'use the name of the resource instead of resourcename System.IO.File.WriteAllBytes("C:/users/user1/destkop",B)
it only save the drectory i choose n it says that yo dont have permission to access the path some times.i want a save directory to pop up so they can choose the fle path and for resourcename pt any file name that uploaded
How to make an SAVE button that saves the text from Textbox1,2,3 and add an comment on the file.Example:
1 button named "Save", when click to save the text from textbox1,2,3 in file named "Anti.txt" (in the same directory where is the .exe file)
2. to display an message when save is complate, if it is not to display error that cannot be saved
I got simply code for save,but i dont know how to modify it to be like this: [code] Where it is Textbox1: to be like a title in the .txt file and after it to add the text from the textbox1.
I am working on a simple game and wanted to save the high score in application settings. Research upon failure has shown that user is read/write but the program doesn't store it between runs.
View 7 RepliesHow would I create a "Save File". I am creating a launcher and need it to save the programs and different texts i have on the program to a save file. One side question: How do I do Links in VS?...HyperLinks that is.
View 9 Replieswell i am using visual basics express and i cant seem to be able to save the file as an application [exe file]. i have created a program for my friend and i want to start to us it does eny one have eny ideas???
View 4 RepliesI am trying to write a code to save and open data that is in my application. My application contains hundreds of text boxes, combo boxes and labels. I have created an array for each set of data, i.e.,
glist(0).store=combobox1.value
glist(0).cat=combobox2.value
glist(0).it=label3.text
glist(0).quan=label4.text
glist(0).total=label5.text
up to glist(89).
Is there a way to write a code to loop through the array and save the values so that they can be opened at a later time in my application? The array will contain Doubles and Strings.
How do I save my settings in the same folder of my application is in .INI file.[code]And how do I delete the app.config folder in the AppData Local dir?Because what I noticed is.. It creates new folders everytime I release a new version of my application.It doesn't consume much space though but still it creates new folder corresponding to the application version.
View 5 RepliesI am wanting to make it so when you push a button, it will save the code in the RichTextBox as a Batch file.I want it to bring up the menu like it does when you hit save as.Here is what i have so far:
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
With SaveFileDialog1
.Title = "Save File"
.Filter = "Batch Files | *.bat"
[code]....
im trying to make an application which on start ask the user to browse for a .lnk file Once the lnk file has been browsed,the application is shown and there are two buttons
1.Launch
2.Exit
When The Launch Button Is Clicked,The .lnk File which the user browsed to at application startup should open. On exit,well it just exits the application! and the openfiledialog should pop up only for the first time the user ever opens the application.the file path should be stored in a .txt or .ini or registry file so that next time he doesnt have to browse for it again..how would i go about doing this!Here is my code so far! Public Class Form1
[Code]....
I am running an application from my desktop as you see on the picture,and I don't know how to run File Save command on active form without mouse click,only with vb.application?
View 10 RepliesI need a better solution that what I am currently using, and not sure where to go from here.The program uses a scanner and scans documents into it. It uses a flat file (essentially a csv) to store data captured from the documents being scanned (each line in the file is one "document", with each value in the line being some piece of data from that document).
The scanner can scan up to 100 documents per minute, so it runs very fast.Currently, when a document is scanned in, the flat file is opened, a line written to it, then closed.It works for the most part, but sometimes i guess it's too fast for the IO operation, and some documents get completely missed. It will throw an error "error accessing file....". I assume this is because the file is still open from writing the last document to it.
Documents can be scanned at random, so they aren't always constantly scanning. It may scan 100 at a time now, then wait 10 minutes, and then scan one document.Database is not an option, per the specs of this program. It must be flat files. If theres a way to use a flat file like a database, that's cool. It doesn't have to be in CSV format.
It MUST be able to write to the file immediately after scanning. I worry about leaving the file open for writing constantly while the program is open because of a system failure or crash, the file may get corrupt or lost. That is not acceptable. It must be the best option for data recovery, should the computer crash or power go out, etc.
I have this pretty simple application, it uses a webService to transfer data to my servers DataBase. Now it is very important for me to keep this application as one single file, and not having some XML files needed for it to work, but this is the case. I think the XML file holds the information to this webService, so without it the application crashes. Is there a way to get the application to work without this XML file, or a way to put the XML inside the exe archive?
View 1 RepliesI work in an engineering design house and programming is not my actual profession. And I am relatively new to VB .net (previous i had worked in vb 6)
I am working on an in house application. I am coding a simple application in vb .net. This applications takes a few inputs from user and calculates a result. Now I want to implement a simple functionality that user should be able to save the input and results just like most of the windows programs can in a new file format. And user should be able to open the save file when desired.
I need to create an application that is able to modify the XML elements value.I have an XML file which was created by another to be used for flash movie which has the following layout:
<?xml version="1.0" encoding="utf-8"?>
<games>
<game>
<gameName>Cowboy</gameName>
[code]....
As you can see there is this string "™" on <gd02>. My question is, whenever I save the file, the code changed to "TM" which is fine for most cases. But I need it to stay the same because apparently flash will not display the superscript "TM" if not using the code. How can I do this?
How do you save all the settings in a simple code; lets say you have a text box, a checkbox, and a listbox.
In the text box, it lets say you wrote hi
checkbox, you checked it off
listbox, you selected lets say HI from it.
How do you save the settings onto a file? Lets say a .cfg or whatever thats called file. Its like automatic, so that the cgf says lets say says:
NameofCheckBox=true
NameOfListBox=HI
NameOfTextBox=hi
Any way to do this stuff? I've seen some people do it, but they wont tell me how. I dont want to add all this code just to make a file that saves it & reads from it. I know the streamwriter and streamreader, but its a bit complicated.
How would you add an exe file to the resources of an application. I want to add an exe to the resources so I can run that application on another machine and then be able to take the file from resources and put it on that computer.
View 2 RepliesThis seems almost to easy to ask, but I must be missing something simple.I've added a folder in the project explorer, by right clicking>add>new folderBut when I run under debug, I am unable to save to that folder as it's not in the debug folder, I get:"A Generic error occurred in GDI+"In this code, the first line saves the bitmap fine (in the debug folder), the second line fails with the above alarm..
"vb"
If Not value Is Nothing Then value.Save(Application.StartupPath & "Image.bmp")
If Not value Is Nothing Then value.Save(Application.StartupPath & "ImageImage.bmp")
[code].....
I have a code (with printdocument) that prints the results of my calculation program. Can I use this code to create and save the results in pdf format?
View 1 RepliesIs there anyway I can get a web browser to open / render the text of a RTB without saving the file? I don't want to save it because it contains sensitive data.
View 2 Replieshow can i save one form to any location But i dont want the whole Projext to be saved just Form 5 not all forms so it will load the input from form 5 only
View 1 RepliesI need my app to determine between Win XP, Vista and Win 7 so It can deside which path to save txt file. I know this can be solved by running program as administrator and be able to save in whatever path you like but it would be good if the user didnt have to. Vista and win 7 suxx in this regard although win7 is great otherwise, use it myself.
Anyways would be nice if it was as simple as:
OS = humhum
and the if else
but probably not TT
I developed a organizer app that will allow me to type in multiple different script ideas I have. I have different text fields for genre, length, characters, etc. Anyway, my problem is how do I go about saving at the information in those text boxes. Is there someway I can save the project as a file, then open it back up to modify it, while still being able to create new ones. Someone suggested using xml data storage, but will that allow me to save multiple different data sets, since I won't just be working with one script all the type.
View 1 RepliesI would like to find out how I can make a complete copy of an existing project.The purpose of this is not for backup but rather to be able to resue some of what I already designed/coded in VB and turn it into a new or different application.
View 5 Replies