Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 6th, 2003, 11:36 AM
Heinz Heinz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Langley, BC Canada
Posts: 35 Heinz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 29 sec
Reputation Power: 12
How can I change text in Shell window Title bar?

I use Shell to run some console apps. (VB6)

By default the title bar displays path\app.exe

I would like to change that to something friendlier.

TIA for your help.

Heinz
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old February 7th, 2003, 11:32 AM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,172 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 29
If you have the window handle of the process, you should be able to change the title of the window using the SetWindowText api. I've never done it, so I don't have any example code. Take a look at this and see if it helps:

http://www.mvps.org/vbnet/index.htm...m/shellhwnd.htm

Reply With Quote
  #3  
Old February 7th, 2003, 12:09 PM
Heinz Heinz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Langley, BC Canada
Posts: 35 Heinz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 29 sec
Reputation Power: 12
Thanks very much.

Looks like it should do the trick.

Heinz

Reply With Quote
  #4  
Old February 7th, 2003, 01:01 PM
Heinz Heinz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Langley, BC Canada
Posts: 35 Heinz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 29 sec
Reputation Power: 12
My jump for joy was premature :-(

While I got it to work as per the example with notepad.exe, it doesn't when calling our console app, wordpad.exe or cmd.exe. Opens the progs ok, but no title bar change. That only works with notepad.exe.

Back to the drawing board and still looking for suggestions :-))

TIA - Heinz

Reply With Quote
  #5  
Old February 7th, 2003, 01:41 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,172 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 29
You might try going to www.freevbcode.com and searching for "shell" to see if anyone there has posted a good routine:

http://www.freevbcode.com/ShowCode.Asp?ID=1308

http://www.freevbcode.com/ShowCode.Asp?ID=1282

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > How can I change text in Shell window Title bar?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap