I currently have a
Windows Forms Application
@tinstaafl can you share this extra programming or a link to a solution. Thanks
Here's a couple of links:
Here's a conversion of the first one. You'll need a form with a checkbox name "CheckBox1":
Imports System.Runtime.InteropServices Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked Then Win32.AllocConsole() Console.WriteLine("Done!") Else Win32.FreeConsole() End If End Sub End Class Public Class Win32 <DllImport("kernel32.dll")> Public Shared Function AllocConsole() As Boolean End Function <DllImport("kernel32.dll")> Public Shared Function FreeConsole() As Boolean End Function End Class
Everytime you click the checkbox you show or hide the console. You can write to and read from the same as any console app.