[DllImport("kernel32.dll")]
static extern bool SetConsoleTitle(string lpConsoleTitle);
Declare Function SetConsoleTitle Lib "kernel32.dll" _
(lpConsoleTitle As String) As Boolean
None.
None.
Please add some!
using System;
using System.Runtime.InteropServices;
namespace ConsoleApplication1
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[DllImport("kernel32.dll")]
static extern bool SetConsoleTitle(string lpConsoleTitle);
[STAThread]
static void Main(string[] args)
{
SetConsoleTitle( "This is a console application......." );
}
}
}
Do you know one? Please contribute it!