Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 10:40 PM
Kep Kep is offline
Authorized User
 
Join Date: Aug 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Console Window Title

Hi all,

is there a way to change the title text of a console window without resorting to windows 32 calls?

If so, can someone let me know.

Thanks.

Kep.
__________________
Kep.
 
Old September 2nd, 2004, 09:03 PM
Authorized User
 
Join Date: Jul 2004
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

What do you mean "console window"?

www.CoderForRent.com
Get A Computer Job!
 
Old September 2nd, 2004, 09:30 PM
Kep Kep is offline
Authorized User
 
Join Date: Aug 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When you create a console application and then run it you get a console window (a DOS box if you like). I want to change the title of this.

In Win32 SDK there is a function called SetConsoleTitle, which will work with P/Invoke, but I thought there might be something done already as part of the .NET framework (like Console.Title = "new title";).

I know my way around the windows API but I don't want to re-make the wheel (as it were) in .NET (I'm pretty new to .NET so I'm just trying to feel my way around).


Kep.





Similar Threads
Thread Thread Starter Forum Replies Last Post
console window disappears too quickly SolarEnergy Visual C++ 2005 5 December 29th, 2008 11:24 AM
how to hide or eliminate console window mohammed imam ahamed Java Basics 0 November 1st, 2008 11:05 PM
Console application but no Console gamotter C# 2 August 22nd, 2007 11:41 PM
Tomcat Console window varun_java Apache Tomcat 3 April 8th, 2005 09:11 AM
Name or Title charlie3 VBScript 2 July 8th, 2003 05:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.