Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: hugh999
  • Content: Threads
  • Order by date
  1. hugh999

    XML nodes and attributes

    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...
  2. hugh999

    Replace in parts of file only

    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...
  3. hugh999

    Macro to search Table in MS word for blank cells

    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...
  4. hugh999

    Edit MS Word macro

    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
  5. hugh999

    Delete from TXT file

    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
  6. hugh999

    Get Macro names

    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
  7. hugh999

    Update MS Access table

    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...
  8. hugh999

    Dataset BindingNavigater issue

    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...
  9. hugh999

    How to link list boxes

    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
  10. hugh999

    VB.NET 2005 and MS Access DB

    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
  11. hugh999

    Remove lines of text from txt file

    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...
  12. hugh999

    listbox Find and replace

    Hi How can i search a listbox for text in textbox1 and replace it with what is in textbox2 Thanks
  13. hugh999

    Where to add Regex

    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...
  14. hugh999

    File count from directories

    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...
  15. hugh999

    Where to add progress bar code

    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...
  16. hugh999

    VB.NET 2005 Multithreading / Cross threading operation not valid

    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...
  17. hugh999

    Restart the computer

    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...
  18. hugh999

    Navigating through an array

    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...
  19. hugh999

    Extract text from txt file

    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...
  20. hugh999

    listbox item to textbox

    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...

Part and Inventory Search

Back
Top