vb.net console simulator control for winform application
a reference to the source project Microsoft.VisualBasic.Core is required.
- Add console control to your form
- initialize console object in form load event:
Dim console = ConsoleControl1.Console
console.ForegroundColor = ConsoleColor.White
console.SetConsoleBackColor(Color.DodgerBlue)
console.Write("Microsoft Windows [Version 10.0.19041.508]
(c) 2020 Microsoft Corporation. All rights reserved.
# ")
- use console object just like use of the
System.Console
:
' display data
console.Write(blabla)
console.WriteLine(blabla)
' read data
console.ReadKey()
console.ReadLine
That's it!