|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Create System.Console from a winforms appIs there a way to create a System.Console from code. I periodically have a
WinForms app that needs to open a console window for progress tracking. Thanks, Mike Ober. Hello,
Import 2 functions: ~ Friend Declare Function AllocConsole Lib "kernel32.dll" ( _ ) As Boolean Friend Declare Function FreeConsole Lib "kernel32.dll" ( _ ) As Boolean ~ Use first, utilize usual System.Console.Write*/Read* methods and call the second one when you're done. Roman Show quoteHide quote "Michael D. Ober" <ober***@.alum.mit.edu.nospam> ñîîáùèë/ñîîáùèëà â íîâîñòÿõ ñëåäóþùåå: news:#uRezz3cGHA.4912@TK2MSFTNGP05.phx.gbl... > > Is there a way to create a System.Console from code. I periodically have a > WinForms app that needs to open a console window for progress tracking. > > Thanks, > Mike Ober. > > > OK - sort of a mix of the full console class I wrote in VB 6 and the
system.console class in the framework. Thanks, Mike. Show quoteHide quote "Dragon" <no@spam.please> wrote in message news:O4aqBu4cGHA.4892@TK2MSFTNGP02.phx.gbl... > > Hello, > Import 2 functions: > > ~ > Friend Declare Function AllocConsole Lib "kernel32.dll" ( _ > ) As Boolean > > Friend Declare Function FreeConsole Lib "kernel32.dll" ( _ > ) As Boolean > ~ > > Use first, utilize usual System.Console.Write*/Read* methods and call > the second one when you're done. > > Roman > > "Michael D. Ober" <ober***@.alum.mit.edu.nospam> ñîîáùèë/ñîîáùèëà â > íîâîñòÿõ ñëåäóþùåå: news:#uRezz3cGHA.4912@TK2MSFTNGP05.phx.gbl... > > > > Is there a way to create a System.Console from code. I periodically > have a > > WinForms app that needs to open a console window for progress > tracking. > > > > Thanks, > > Mike Ober. > > > > > > > > >
How to disable the numericupdown event firing?
Mailmerge Automation Problems VB Form: Controlbox = False byte array size for read or write of filestream Need to lock read a text file, then delete... Dataset or SQL? wich is faster? Basic Database Questions Check if Service is running? Using VSS and VS.NET 2003 How to interrupt a running program |
|||||||||||||||||||||||