Hi, I have the following code that reads an XML file and pulls out attributes for a specific node to a listview control, which works as expected. I am now trying to also pull out specific node data <Words> and <Segments> from under the <Total> element and add to the listview. I was wondering...
Hi, I have this code that works fine for replacing in TXT file. I need to change the code so only to perform the replace in groups of text.
Dim Fs As FileStream = New FileStream("C:\report.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite)
Dim sw As New...
Hi
I have table in a word file that contains 2 columns. What i am trying to do is search through the second column for blank cells and if found copy the text from the adjoining cell that is in the first column to the blank cell.
I found some code for searching blank cells but i need help on...
Hi
I have a VB.NET application that opens an MS Word file and runs a macro, which works fine.
Is it possible to edit an MS Word macro from a VB.net application.
Thanks
Hi
What is the best approach to search a txt file for a specific piece of text and when found delete that line and the next 5 lines from the TXT file
I have code to delete the line that contained the searched text but lost on how to delete the next 5 lines.
Thanks
Hi
Is it possible to retrieve all the macro names from MS Word “All active templates and documents” and display them in a listbox. If so can someone please point me in the right direction of how to achieve this or with some sample code.
Thanks
I found the following code for updating a table in MS Access which works fine
OleDbUpdateCommand1.CommandText = _
"UPDATE tblStats SET CarNames=" & _
"'" & TextBox1.Text & _
"' WHERE ID=" & IDTextBox.Text & " ; "
How can I expand this to...
Hi
If I add the following SQL statement to a query in MS access, then I am able to see the data from both tables in Access and if I change the data then the data gets changed in both tables.
SELECT tblMetrics.ID, tblMetrics.Username, tbProjectNames.Project, tblMetrics.Proj_Schedule...
Can someone please point me to site on how to link list boxes or show me some sample code on how to achieve the following:
If a user selects / highlights the first item in listbox1, then the first item in listbox2 will also get selected / highlighted.
Thanks
Hi
Can some one please point me to a site that has step by step information on connecting to MS Access databases and how to add, delete and edit data in the database plus how to display the data from the database to a form (data grid control).
I appreciate help on this.
Thanks
I am trying to remove lines of text from a text file, the lines of text containn the word “invalid”. I am using the (InStr) that finds the lines of text but how do I remove these lines of text from the array
Here is what I have so far.
Private Sub Button10_Click(ByVal sender As...
Hi
The following code will open a text file and read each line of text and then search a list box for that line of text, if found it will replace the line of text in the text file with the next item in the list box. (Strange I know)
Dim lineIn As String
Dim i As Integer
Dim...
Hi
I have the following code that will list all directories and sub directories
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim DirList As New ArrayList
GetDirectories("C:\Tools", DirList)
End Sub...
Hi
I have code that steps through and reads text files from a list box (listbox2), modifies the text, adds the text to a second list box (listbox1) and writes the modified text from the listbox1 to a new text file. I am trying to add a progress bar code to display the progress of each text...
Hi
I am trying to introduce Multithreading in to my program so that the program remains responsive but am getting the error Cross threading operation not valid.
My program will execute a batch file on a list of files that I have added to a ListBox. When the batch file finishes working on the...
Hi
I have a program that will run a reg file to change the value of a code page value. For the value to take affect I need to restart the computer.
Can anyone point me in the right direction for documentation on how to restart the computer, enter log on details, open the program and continue...
Hi
I have an array that contains a list of elements that I can export to a list box using (For Each), but what I am trying to achieve is to retrieve the elements 1 by 1 and add the elements to a text box.
For example, when my form loads, the first element of the array will show in the text...
Hi
I have txt file that contains a few hundred lines of text. In the majority of these lines of text there is a file name and I wish to extract the file names from the txt file to a new txt file.
Would the best solution to achieve this be, to search for the text before the file names...
Hi
I have the following code behind a button that will select the next item in a listbox and add it to a text box. The problem is that when i clik the button to go to the second item the code skips the second item and goes to the third item
[COLOR=red]
For i As Integer = ListBox1.Items.Count...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.