I am trying to save multiple text files using a save dialog.
I can save one textbox
SaveFileDialog1.ShowDialog()
Dim File As System.IO.File
Dim Write As System.IO.StreamWriter
Write = File.CreateText(SaveFileDialog1.FileName)
Write.WriteLine(TextBox1.Text)
Write.Close()
but I don't know how to save multiple textboxes and richtext boxes. Would I have to use a screenwriter for this?
Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click timedate.Stop()[code]......
The problem is that if I save a file I get "myfile.GDL" if I overwrite that I get a new file "myfile.GDL.GDL" ect.the other problem being that the filtering in the windows save/open dialog wont show .GDL files unless I select "all files".
I am trying to find a way to allow my users to choose the directory to save files into, THe file name is automatically generated as it has a naming convention and i am able to pre program a location to save to but i d like to be able to allow my users to decide themselves which directory they want to save the files to and to have the ability to choose which directory to save to
I am creating a program that uses XML files and saves them automatically when the user updates information. When I have XElement.Save("Name.xml") it saves the XML file in the same directory as the EXE. What I am trying to do is allow the user so select the location of the XML. Also is loading XML files through the loaddialog box basically the same way as XElement.Load("Name.xml")?
I am wanting to find out how to use the Win32 hooks to allow me to add extra save locations to the save and open dialog box so as to allow as an option for files to be saved directly to a database rather than a file system.I have tried looking online but can't find anything remotely usable for this, the only data on hooks that I can find involves Window operation hooks, mouse, leyboard, and shell hooks, nothing to do with files.
Im trying to save a file in XML and offer the user a save dialog to appear so they can name the file. The file will save using a custom file extention. The problem is I keep getting off the wall suggestions and Im looking for a simple solution. Here is what I have, please only show examples using my syntax based code. Im still a bit new to Vb so posting off the wall examples
i made a vitual dekstop and i have a few problems that to be fixed. The first problem i have is that i have a picturebox as the entire form like the desktop background but the progrblem is that i have some group boxes over that picturebox box. How can i make so you can see throw the group box so that you can see the image behind it. And how can i save a picturebox image without a save file dialog
I am needing to allow the user to choose a directory to save in. They can create a new directory if they want/need, and once they choose the directory, my program will save a few pre-coded files into that directory.
Its a League Organizer, basicly ive started it off with 16 teams and end up with 1(winner) 16 box's on the far left, then 8, then 4, then 2, then 1. the 16 box's have "Team 1" "Team 2" etc... ive put a new/clear/open/save button in that order.
BUT this is my problem..when i save(Save Button) the text file saves all the text wrong it ends up like this...Team 1Team 2Team 3Team 4 Etc...
But i want it to save like this
Team 1 Team 2 Team 3 Team 4 Etc...
The code is...
Dim Save As New SaveFileDialog Save.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*"
I want it to do the following: When they click the import button, open multiple files (done) then save them as a settings. Then on form load, open those files so I do not have to re-import them!
I have tried this
CODE:
on form load and settings.txt included 2 file names and locations. It is only opening the 2nd file NOT the first. How can I make it open ALL files in that settings file? I also tied ReadLines
I have two text boxes that I put in. textbox 1 I type in clue textbox 2 I type in answer.
This is my code.
Private Sub BtnCodes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCodes.Click System.IO.File.AppendAllText("C:Do_Itclue.txt", Environment.NewLine & txtClue.Text) Cls_MessageBbox.Show("Die Luidraad" & Environment.NewLine & txtClue.Text &
[Code]....
How can I make it that I can sace boths of them togeter, as a clue must always have an answer, so that when I read the clue it must show the answer to me.
I need to to able to save multiple text-boxes and a combo-box to a text file. the thing is, when I go to save, I check out the .txt file manually and its saved all in one line, no spaces. when I go to "read" it with the 2nd part (<-----this is a 2 part Challenge) it even reads all from that one line in the text file. What i'm asking is how can I make my text-boxes saved in the text file on different lines. [Code]
i would like to know if it's possible to save text files into my app. that way there is no folder to contain those files. i'm thinking that i might need a separate form to hold such information, like creating a new textbox for each saved file and it's content, then loading the files from that form's textboxes.
how to make this save multiple combo/text boxes instead of just one, here is my save code which
Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click Dim Save As New SaveFileDialog
how do i program it to do whatever i want before it goes to (Not Responding) In my case i am working with text files and stuff like that, sometimes my program gets an error and shows as (Not responding), so how do i make my program to do whatever i want before it goes to (Not responding) status. (In my case i just want it to save the text files, before i can't even click on the program)...
This is a new question based on the response from an older post. I needed to save a value when my app is run for the first time that would be applicable to all users who logon to the PC and use my application. The setting is only known at the time of the install so Application settings with application or user scope are unsuitable. I was advised to save the setting to an external file and save/read it as needed. The obvious choice was to save the file to the projects application path (keeping things tidy). Everything worked fine during testing but when the application is installed on a PC, the application path becomes C:program files application nameetc. When I try to execute the code that saves the file, I get a permissions denied error. I understand that it's part of the UAC control but when did it become acceptable to stop developers programmatically creating files in their own application folder?
So I have made a text editor using rich text boxes and it is made to save/open rtf files. I have 3 issues I was hoping to get answers for...
1. Can I (and if so how) make it able to open/save text files and rtf files (so the user can choose which way to save it)? 2. I added the ability to color the words, but instead of coloring just the highlighted parts - it colors everything in the file. How do I change that so it only colors selected text? 3. I also added the dialog for Font changes, but it does not seem to work correctly. I want it to change font/size/etc of whatever is selected. Right now when I highlight stuff and then go into Font it allows the dialog box but does not actually change the font size/type/etc in the file it has open.
Here is the code for the above 4 mentioned areas... Save... Try Dim dlg As SaveFileDialog = New SaveFileDialog dlg.Title = "Save" dlg.Filter = "Rich Text Files (*.rtf)|*.rtf" [Code] .....
tell me a way that i can save the stuff written in 3 text box (Name,Address,Bday) by using a command btn. And then finding all of their information by just entering Name using another button.
I'm trying to make it so the the images will save to the folder that you selected in the textbox1.text from the folderbrowser this is the code's I have tried