Save And Load A File In VB Express?
Mar 11, 2010I'm building a small program like notepad and wanted to know how to make it save and load a file[code]....
View 1 RepliesI'm building a small program like notepad and wanted to know how to make it save and load a file[code]....
View 1 RepliesI have a set of labels that contain number values that need to be saved into a txt file and recalled from a text file by a button click event.
Ive been searching these fourms for days trying to find the answer to the save / load data problem. From what I understand, XML should be used to do this. But no matter how much I read I cant make sense out of how to solve this issue. I just need a simple and quick fix that dosen't have to use XML[code]...
I have a set of labels that contain number values that need to be saved into a txt file and or recalled from a text file by a button click event.assume the value of label1 label2 and label3 must be stored in a text file on the users computer and then later loaded back into the program from that text file.How can this be done without using XML ?
View 1 RepliesFirst of all Im new to vb 2010 and so far have enjoyed what I have been able to do with it. That being said I have run into an issue with my current project.
Basically I have created a timer and all works well on that part. My issue lies in that my timer loads a .png for each minute/second and I was linking the images like so[code]...
I'm currently developing an editor for an AFL management sim.I want to be able to load three or four multidimensional arrays to the program, then save them to the same file. I tried the tutorial on here but got completely muddled up. Why can't it be easy like in VB6 When it was like 10 lines of code tops!
View 5 Replies# TAG NAME = is saved to a file using the code below but when I load that same file back into a RichTextbox Control using additional code below, I get inconsistent results as I try to parse the text. Has anyone else had this problem?'Save the contents of the RichTextBox into the file.richTextBox.SaveFile(saveFile1.FileName, RichTextBoxStreamType.RichText);'Retrieve contents of File into RichTextBox control Dim logData As String
logData = System.IO.File.ReadAllText(path + "\" + filenname);
I want my app to load a .exe file specified by the user, crypt it then save the crypted .exe file on a path also specified by the user. I need some guidance on this. First of all, I am currently using IO.filestream to store the .exe file. When I save the completed file (so far in development, that means a copy of the file as I haven't added encryption yet) the .exe file appear there alright, but without the icon (it has the standard/no icon instead) and it does not work. I tried outputting it to a .txt for examination and it was a bunch of tokens as one would expect. Here is the statements:
[Code]...
[VB 2008 express edition] i am doing a application data grid view bound data from MS access (.mdb) as my dataset. the dataset have 5 tables, each table consist of ID, Items, Rates, And Amount, i face some problem here:
a) cannot delete row from the table, (using binding navigator but error)
b) how can make a opendialog to load the .mdb file dataset table in to the datagridview?
c) how do i save table in the datagridview into the MS Access file ?
I have a treeview control that contains an Active Directory OU structure and I want to save this to an XML file, and load it again later.
When I save an OU that has a space in the name, I get an "XMLException was unhandled" error. The description is "The ' ' character, hexadecimal value 0x20, cannot be included in a name.".[code]...
I have a made a simple program with multiple forms and multi text boxes in each form where the user inputs text into textboxes. I would like to be able to save the data into a file and then be able to load the text from that same saved file.
Is there a code template that would allow me to do this?
Instread of using SQL Connection is there a way to save and load the rows from an .INI file and if it can, mind showing me how?
View 1 RepliesLet's say I got a Dictionary type object holding some important info. Well, my user wants to close the program and work on it later.
How do I save the Dictionary and other variables in one single file, which can only be read by my program itself?
I would like to load a file from www and save it to folder. I am using Visual studio 2008 an VB in form aplication. So how to load a file from example www.test.gg and saving it to c:/myfolder/
View 3 RepliesI'm using VB Express 2008 and I would like to open an excel file and save it with different name file. For example, I would like to open a file in
C: est.xls
And then I want to save them with different file name such as
C: ry.xls
What the icon file filter is for load/save file dialogs. (I know the jpeg one is "JPEG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|All files (*.*)|*.*" But as far as I know you can't use these as icons without an icon editor).
View 1 RepliesHow can i save or load info to/from a txt file without going through the savefiledialog.
View 4 RepliesI have an application that pings IP addresses. When complete it will probably have close to 1000 IP addresses it will ping. I have a settings page that has a textbox that stores the IP address (one IP address eg. 192.158.1.1 per text box) for the object to ping. I want to be able to save all of the textbox IP address into a text file, and then be able to load the IP addresses from the text file into the respective text boxes.
View 3 RepliesI've been literally googling for an hour now trying to find how to save variable settings to a file.I'm writing an application and I'm using alot of changeable variables. I want to be able to save these to a file so they can be loaded at application startup. I don't feel like using the regestry since I hate to write unimportant things to the registry.I remembered that I found a good example with simple code of how to do this with xml, but I can't seem to find the example now.
View 10 RepliesI have 2 BindingSources that interact with controls on my application. Is there anyway to save them to a file and also load them?
View 2 RepliesI'm trying to make an application that edits '.dds' files. I want to be able to load the file, edit it and then save it again.
If it's not possible to load & save it then does anyone know how I could convert it to another picture format like '.png' or '.jpg'?
How do i save a listview along with the CheckState and then load it back ?
View 3 RepliesI have the login form glitch figured out, and now I'm wanting to make a system within the login form's code to check to see if the characters save file exists...
I have the save, load, and test load functions here as follows, and I want to figure out a way to make something test to see if both the character name and the password match a file and or see if they actually exist in that combination.[code]...
I have a sign up sheet that I am working on for instance;
username
password
street address
city
state
zip
I've been trying to save the textboxes individually but when I go to load the information everthing is pushed all into one textbox.....I'm also using the SaveFileDialog and OpenFil
One form of my program is Item Development it has simple questions like Physical propertys of item, name, roll in story,etc.. I want to save this form (Form1 and all of the external anwsers that are written in the textbox and the radiobuttons that are selected! Next question is to load that.... The code
[Code]....
when i login i want a menu that says to load or create new (already made) but i don't know how to load a file as a whole, i can streamwrite and read and also save file dialouge but i'm looking for somtting different.if i saved the info for the editor seprate from the login screen (2 different projects????)
View 4 RepliesI am very new to VB.NET, I want to create a Forms Application to load a text file that has lets say 50 lines, some of the lines are identical and those are grouped together and some same format but different make up. Have it loads it into a text box in the form, to see - but I want another button to randomize all the lines and then show that in the box, and then have a Save button to overwrite the orginal.
[Code]...
have a code for load info to textboxes and save to ini file.like takes info from hello.ini file and when i load rhe program it will take the info to the texteboxes...
View 5 Repliesi'm trying to add textbox1.text as the file name for the save file dialog.. this code works fine when there are no invalid char inputed in the textbox. if there are, my app shuts down.. here's the code that i'm using:
Public Sub saveas()
With SaveFileDialog1
.InitialDirectory = Label1.Text
[code].....
i have problem to load the data text file that i saved because i am out of the index ,where is the index that stops me?
View 14 RepliesI am looking for a way to save and load the values of all my controls present in my form.My form has around 100 controls spread over 7 tabs. The controls include (Multiline) TextBoxes (Strings), NumericUpDowns (Integers, Decimals) and Checkboxes (Booleans). If the user clicks the save button a "Save File" dialog should appear allowing the user to specify the directory and the filename of the save file.All the values of the controls should then be written to that file.If the user clicks the load button an "Open File" should appear where the user can pick a previously saved save file. All the controls should then adopt the values found in the save file.I have implemented Application Settings in my form, and now when I click save, it saves the control values through My.Settings.Save(). If I click load it loads them.However, my project requires that multiple save files can be made to reflect multiple configurations. As I understand Application Settings only allow for a single .config file in the Application Data folder.So how can I code a save/load routine to save/load different configurations?
View 1 Replies