Make A Text File?
Oct 22, 2009How can I make a text file, where in, there is several lines of text.
[code]....
How can I make a text file, where in, there is several lines of text.
[code]....
make the text in a text box into a text file that auto-creates in a specific?
View 4 Repliesmake the text in a text box into a text file that auto-creates in a specific?
View 4 Replieshow do i make this open a file with the name of .mxp and any text file how do i add that in. and how do i open the file mxp to Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
[Code]...
I have a text which contain the values like this:
X200876Y-140576
X220177Y-124676
X178377Y-124076
I want to changes all the above values like this:
X200.876 Y-140.576
X220.177 Y-124.676
X178.377 Y-124.076
i want to add dot after i read every three digit from back.
how to read a text file name and write it into a combobox so wen the name is pressed the text in the text files appears in a listbox
View 3 RepliesI have a text file to read. The text file contain two parts. I need to find matching line in this two parts and place the matching lines in new file. In that new file i need to change the value in () from firs part and value in[] in second part. So far i can do all this things. This is a code.
Imports System.IO
Imports System.Text.RegularExpressions
Public Class Form1
[Code].....
So second line onwards the value will be X=X+2.4. Same also for second part . how should i point the green and red value and change the values. I attach mu text files here for your referance
I got some code that im try to make search and text file and replace it. The code im using to replace it with is whatever the user entered in txtURL.text. Here is what i have
Dim strFile as String
Dim result as String
strFile = "C:\test.txt"
oRead = IO.File.OpenText(strFile)
result = Replace(oRead.ReadToEnd(), txtURL.text, "1F.php")
oRead.Close()
Is this writing it back to the file also....I think that might be the problem, not sure..
How i can make a program to verify if files of a text file exists ?
Example:
I have directories.txt who contains:
Line 1: C:PasswordsAccounts.txt
Line 2: D:GamesFifa 11fifa.exe
So i can to verify if these two files exist?
But not: my.computer.filesystem.fileExists("for each one")
I have this program:
Module Module1
Sub Main()
IO.File.Create("C: ext.txt")
[Code]....
How to make my program not to use the newly created file 'text.txt'? Notepad fails to open it, it says (The process cannot access the file because it is being used by another process).
I would like to know how to read from text file that have a line with string A and ignore lines with string B.
View 7 Repliesis there a way to make VB 2008 read a text file of digits eg:
56154131313313
31231212121211
12534645456464
44564545454787
and import it into vb, splitting it into four digits and putting each set of four digits into a different text box.
how can I make default path for my text file.Problem is when I send someone my project, he need to write his text file path in code.
View 2 Replieshow to send e-mail?I don't know what's the code for send e-mail. Can anyone teach me how to?I have a button on the Menu Tool. I want when user presses that button, it will directly link to the Microsoft Office to send e-mail to me.Please teach me.By the way, I also want to know how to load a text file. I want to make another button on the menu tool so when user presses it, a text file will pop up.
View 18 RepliesIm trying to make a program which would check for users from text file on a certain website I can populate the list box, and loop through it's items here is the code i came up with so far and it doesnt work properly, it pops out first item in the listbox, and last item only, even though that they shouldnt be popped out
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If Not ListBox1.Items.Count < 2 Then
[code].....
(this is supposed to check every user, and if user doesnt exist, website will return page not found, else user exists and his name is added to listbox2)
Im learning Visual Basic 2010 on my programming class and we reached the part of file handling. Here i tried to make a simple program that can create a text file with the content of what i type on the textbox, basically i create the file if it doesn't exist, and if it already exists i append the content to it. Once the file is saved i can read it using the "Open" button. Unfortunataly, whenever i try to create the file, the compiler gives me an error saying that it cannot modify a closed file, although i've followed up the execution instruction by instruction and i can't find the error.
Imports System.IO
Public Class Form1
Dim body As String
[code]....
I have one combobox, two buttons (Add and View) and listbox. When I click button Add text from combobox is added to text file. This is code for Add button:
[Code]...
Im trying to make a search bar that has a Go button now heres where it gets diffcuilt How do i make this search bar take the text in the the text bar and add it into a pre defined weblink and replace a bit of text with that word in the search bar so the user types into the text bar for example they type in NAME HERE so when you click go it taxt for instance [URL] now how could i make it so when you hit the GO button that it takes the text in the textbox and and replaced REPLACE TEXT in the pre defined address and put NAME HERE into the address and then load it up with a web browser and also how would i make it open up with the web browser that the person is useing (since lods of people use diffrent web browsers)
View 3 Repliesi want to take a comma delimited text file and then select all unique records based on one of the fields in the text file. should i read the text file into a data table or just use a data reader?
View 7 RepliesHi, i'm trying to use the treeview to display the text of a rtf (rich text file) file when an specific node if clicked.HomeOMGWOOTFor example, if i pick OMG, i want the text of lol.rtf to be displayed on a richtextbox. But somehow i just can't manage to get it... I know to import the text of a .txt file to a textbox, but using the treeview makes it more complicated.This is the code im using right now:
Private Sub TreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Select Case e.Node.Index
Case 0
[code]....
Another thing is, that i can't import the *.rtf text into a richtextbox and i don't know why.
So I'm in the final stages of finishing a program I've been working on for nearly a year now, and this is basically my final hurdle. The Save dialogue is working beautifully, with 'flags' in order to switch it over from the regular input into text boxes to the Listbox input protocol.
However, I'm having a *** of a time getting it to take lines from the text file and put them in the proper text box. Here is an example file:
Quote:
SHOWNAME
CALLNAME
BREED
[Code]....
So with the sample file I provided above, in the textbox named callNameText would appear "SHOWNAME", and so on and so forth. With this build, I get a NullReferenceException on the "Me.Controls(strboxNames(i)).Text() = strAllText(ati)" line.
i'm trying to use the treeview to display the text of a rtf (rich text file) file when an specific node if clicked.HomeOMGWOOTFor example, if i pick OMG, i want the text of lol.rtf to be displayed on a richtextbox. But somehow i just can't manage to get it... I know to import the text of a .txt file to a textbox, but using the treeview makes it more complicated. [code] Another thing is, that i can't import the *.rtf text into a richtextbox and i don't know why.
View 3 RepliesI want to make a program that sends text in the text box to a form on a website and print the page as .xps
View 2 Repliesim trying to make a program in which if the textbox text and the listbox text are the same order, which they are in the picture, a bluie fonted text saying well done appears. However only the red text appears which is only meant to come when the order of the text in both listbox and textbox isnt the same.
Here is the code that i used for this:
listarrays = name of listbox
textbox1 = name of textbox
l is the name of the label for correct answer(blue font)label3 is name of label with red font which should only appear for wrong answer
Dim text As String = Me.TextBox1.Text
For Each item As Object In listarrays.Items
If item.ToString = Me.TextBox1.Text Then
[code].....
use another textbox instead of the listbox but thats just making itmuch harder for me as I already made the full code working with the listbox. My lecturer told me i need to convert both in string so both textbox and listbox are compatible and i did so (see code above) but the correct label doesn't show?
I went and created a tab containing a good amount of controls, most of which are contained within what I'll just call the top-level group box. Now I decide I'd like the text of the top-level group box to be bold, but nothing else. When I set the top-level group box's font to bold, however, all of the controls contained within it become bolded as well, which is what I don't want. I can set each individual control's bold property to false, but it seems like there should be an easier way to do this.
View 2 RepliesI'm trying to make a small database out of text boxes and text files, something where sql would be overkill, not to mention beyond my experience. I want to be able to write the contents of the text boxes to a file.txt (the easy part) then being able to retrieve them back out into individual text boxes. How would I pull this one off?
View 5 Replieshow can i make an if statement the "if textbox2.text has only one line of text then..."
View 3 Repliesis it possible to make first 60 characters in a rich text box a different color than the remaining text?
View 25 RepliesHow can i make a textbox so like when a button is pressed how can i make the textbox select a random text and put it in its text box.
View 7 Repliescan we make code which can make copying a file in a particular drive invalid/access denied?
View 3 Replies