Click here to Skip to main content
16,006,520 members
Articles / Programming Languages / C# 4.0

Attaching a Console to a WinForms application

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
25 Jan 2012CPOL 8.6K   2  
VB version:Friend Declare Function AllocConsole Lib "kernel32.dll" () As BooleanFriend Declare Function FreeConsole Lib "kernel32.dll" () As BooleanSub main() Dim MainForm As New frmMain If Command = "" Then MsgBox1 = AddressOf MyMsgBox1 ' messagebox delegate sub call...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Alan Budelier is a happy Catholic working for IT in Major Fraternal Life Insurnance Company in Rock Island, IL, who, like Christ, would someday like to compile and run without any need for exception handling.

Comments and Discussions