Can not print in console which is called by a windows form in VS2019

  • Thread starter Thread starter goldenview
  • Start date Start date
G

goldenview

Guest
Dear All,

I made a tool in VS2015, it is a windows form application and I used console to print process data. After using VS2019 recently I can't print anything in console anymore. Anybody could hellp me with it?

The way how I call console in windows form application:

<Runtime.InteropServices.DllImport("kernel32.dll")>

Public Shared Function AllocConsole() As Boolean
End Function

Private Sub frmServer_Load(sender As Object, e as EventArgs) Handles MyBase.Load
AllocConsole()
End Sub

Continue reading...
 
Back
Top