Active window title

  • Thread starter Thread starter =?ISO-8859-2?Q?=22Pawe=B3_S=2E_Piotrowski=22?=
  • Start date Start date
?

=?ISO-8859-2?Q?=22Pawe=B3_S=2E_Piotrowski=22?=

Hello

I'm writing some small application in C# just for my purpose. I want to
change active window title. This feature was i.e. in foo_tbar.dll
extension for foobar (music player) - when track was playing in active
window title bar on right side I could see track name and artist.

Can anyone tell me how to access to this properties and how to detect
which window is active?
 
Hello

I'm writing some small application in C# just for my purpose. I want to
change active window title. This feature was i.e. in foo_tbar.dll
extension for foobar (music player) - when track was playing in active
window title bar on right side I could see track name and artist.

Can anyone tell me how to access to this properties and how to detect
which window is active?

Use the form's Text property to change the text in the title bar:

Form1.Text = "My new title.";

rossum
 
rossum said:
Use the form's Text property to change the text in the title bar:

Form1.Text = "My new title.";

Yes, but my program is console application and I it runs in background,
and I would like to change text in title bar in app that I'm working
with actually.

Example:
1. My console app is running in background.
2. I work with Visual C# Express 2005 for while and it's title bar has
normal text with extra info from my app.
2. I switch from Visual C# to Firefox and that extra text is
disappearing from Visual C# and now it's in Firefox title bar.

How can I check app that has actually focus?
How can I change this app title bar?
Is it possible or should I develop it rather in Visual C++ ?
 
Back
Top