Search results for query: *

  1. H

    Resolved Saving text . . . . how?

    1 - You didn't add "Imports System.IO" to the top of the file. 2 - Just double-click the button you want to use to call the code, then add: WriteFile() to the code that pops up. That will call the sub "WriteFile" shown in the previous post, and the code contained within, the saving code...
  2. H

    Resolved Saving text . . . . how?

    You could use a save file dialog to allow the user to type in a file name, then create a new stream writer referencing the file name the user has chosen. Private Sub WriteFile() Dim writer As StreamWriter Dim saveFileDialog As New SaveFileDialog()...
  3. H

    Resolved Saving text . . . . how?

    A boolean is basically a true or false value. As for writing text files... Imports System.IO Dim writer As New StreamWriter("C:\Example.txt") writer.WriteLine("Some line of text") writer.WriteLine("Another line of text") writer.Close() That would create a text file called Example.txt...
  4. H

    Question Issues Running Command Prompt from Program - Help!

    Because I need to run several commands within one window. That way, several hundred command prompts don't open at the same time and cause the system to hang.
  5. H

    Question Issues Running Command Prompt from Program - Help!

    I'm working on a program that relies on another program to convert some data. This other program is a command line executable. The code I'm using is as follows. Using m_process As New Process() With m_process.StartInfo .FileName = "cmd.exe"...
Back
Top