Click to See Complete Forum and Search --> : Changing the Title of an App


Grimes
January 10th, 2001, 12:36 PM
How can I change the title of my app while it's running? I want it to say various things depending on where the user is in the app. Any thoughts?

Thanks.

Bryan

dfwade
January 10th, 2001, 12:52 PM
I assume you want to change the text in the system tray, because the app.exename is a read only property. You can Change the Form Caption and if the form is marked as showintaskbar then that can show your changing text, but you cannot change the name of the application at runtime. There is a function on CodeGuru that will show you how to create a taskbar item if you have to have this functionality.

Grimes
January 10th, 2001, 12:59 PM
That's what I want to do. I'll check there....Thanks

Bryan

Grimes
January 10th, 2001, 01:02 PM
Would you happen to know where that example is on Code Guru? I can't seem to find it. Thanks again.

Bryan

dfwade
January 10th, 2001, 01:05 PM
try this link, by the way CodeHound is the best source for those hard to find items.
http://www.codehound.com/vb/results/results.asp?Q=system+tray

Grimes
January 10th, 2001, 01:23 PM
I'm sorry for all this, but I still don't see anything. I understand what you are talking about, but I'm looking to change the Form Title in the Task Bar not the SysTray, and I don't see an article for anything about that. Again I'm really sorry to bother you and I really appreciate your help.

Bryan

dfwade
January 10th, 2001, 01:34 PM
sorry, i misunderstood try this create a new project and add a command button. paste this code in. This will change you menu on the start bar


Private Sub Command1_Click()
Me.Caption = "MyTest"

End Sub

Grimes
January 10th, 2001, 01:35 PM
Thank You.

Bryan