473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Active window title

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?

--
Pawel S. Piotrowski
xmpp:ps*@jaim.at
Aug 10 '06 #1
3 8104
On Thu, 10 Aug 2006 14:21:29 +0200, "Pawe³ S. Piotrowski"
<ps*@no.spam.o2.plwrote:
>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

Aug 10 '06 #2
rossum wrote:
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++ ?
--
Pawel S. Piotrowski
xmpp:ps*@jaim.at
Aug 10 '06 #3
youl need APIs for this....take a look at these websites, they should help
you out

http://allapi.net/apilist/GetActiveWindow.shtml
http://allapi.net/apilist/SetWindowText.shtml

hope this helps
--
-iwdu15
Aug 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David C. Barber | last post by:
I'm having a problem knowing what is the current active window using VB6. Yes I can use the ActiveWindow property to determine what is my VB active window, HOWEVER, if the active window is some...
3
by: Russell | last post by:
I have a quirky issue that I believe involves timing and only 2 hairs left to pull. I have a modal dialog that is an IFrame. The IFrame contains another window - which contains the appropriate...
0
by: John | last post by:
How to detect when a document changes from being the active window(C#)?(Is there an event handler to detect when an active window changes?) My application is supposed to detect change in the word...
0
by: Bobby Smith | last post by:
I wrote an application a little while ago that sent text to the active window by programmatically copying the text to the clipboard and then sending the WM_PASTE message or something along those...
4
by: Daniel Morrissey | last post by:
Why will the following code not change the window title of the new window? window.open "Default.htm" ,"YO"
3
by: Dean Slindee | last post by:
I would like to capture a picture of the active window on the screen to use in an error routine. Like the following, which captures the entire desktop: Dim objRectangle As Rectangle =...
9
by: rolandgust | last post by:
I've written some code that creates a pop-up window to play back QuickTime movies and then pushes HTML into that window so I don't have to have a separate HTML file for every movie. The code works...
3
by: nitinmukesh123 | last post by:
Hi I am facing a problem with setting the modal window title.. source of 1.html <html> <head> <script language="javascript"> function openNewWin() {...
2
by: kimiraikkonen | last post by:
Hi, I need to show an active window's (form) size(width and height in pixels) in message box, however there are some low-level api calls in user32.dll but i don't know which function returns the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.