Visual Basic doesn't have the ability to read or write from the console. To accomplish this, the Win32 API exports a set of functions that interacts with a console window using handles. clsWinConsole is a simple VB class that encapsulates the code needed to open, write/read, and close a console window. Here is a code snippet that demonstrates how to use clsWinConsole:
Public Sub Main() Dim console as New clsWinConsole Dim inp As String console.Show console.WriteText "Text" inp = console.ReadText console.WriteText inp console.Hide End Sub
File List:
clsWinConsole.cls
5Kb
Similar code
FIXED CD TRAY OPENER & CLOSER
(Popularity: ) : This one's a fixed version of the last one. Thanks to the help of others, i've included the CLOSE function... This is a ZIPPED version as well, so it comes with the EXE version and the source code! I still ... A complete ping code using API Code and ICMP ! very easy
(Popularity: ) : Is a API code that allows the application to make a PING to host, just as the command "ping" made in the CMD of Windows, which will respond suitably Form On Top
(Popularity: ) : This will put your forms on top. Works good. It uses API calls to do this. Hope it helps you. Also Please visut my site, i got some video tutorials there about visual basic. A Better API Error Lookup
(Popularity: ) : Queries Windows for the meaning of an API error number, and allows you to search a range of numbers... the results get placed in a list