How to use witeconsole in VB.NET?

  • Thread starter Thread starter PaulT
  • Start date Start date
P

PaulT

Hello,
how can i declare writeconsole function in VB.NET?
There are a lot of answers in web but all for VB6 with "Any" data type which
is not supported in VB.NET more.
I need to write to x,y position in console window.

Help me, please.

Paul Tuka
 
Paul,
how can i declare writeconsole function in VB.NET?

I think the following should work

Declare Auto Function WriteConsole(ByVal hConsoleOutput As HandleRef,
ByVal lpBuffer As String, ByVal nNumberOfCharsToWrite As Integer,
ByRef lpNumberOfCharsWritten As Integer, ByVal lpReserved As IntPtr)
As Boolean



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top