I searched for a couple hours lastnight on example code of how to go
about making an item in the System Tray (notification area) not be
square. I've found several programs that do this but I can't seem to
find any documentation on how to actually get this to work.
I checked out some system messages that NotifyIcon uses thinking that I
could just make my component from scratch using these but nothing seemed
to be allowed to adjust the width of the icon.
Does anyone have any ideas? Eventually I want to have an item that
takes up two slots horizontaly, or an area like the clock - I know I can
create text by making a bitmap, drawing on it, and converting to an icon
- that's all working - but actually getting that to show up correctly is
giving me a headache.
Thanks in advance,
Benny 7 2715
Benny,
You can't do this. The icon has to be 16x16 I believe. No other size
is allowed.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Benny Raymond" <be***@pocketrocks.com> wrote in message
news:uR*************@TK2MSFTNGP10.phx.gbl... I searched for a couple hours lastnight on example code of how to go about making an item in the System Tray (notification area) not be square. I've found several programs that do this but I can't seem to find any documentation on how to actually get this to work.
I checked out some system messages that NotifyIcon uses thinking that I could just make my component from scratch using these but nothing seemed to be allowed to adjust the width of the icon.
Does anyone have any ideas? Eventually I want to have an item that takes up two slots horizontaly, or an area like the clock - I know I can create text by making a bitmap, drawing on it, and converting to an icon - that's all working - but actually getting that to show up correctly is giving me a headache.
Thanks in advance, Benny
Benny,
I suspect you are having trouble differentiating between image formats. The
format used in the system tray is *.ico - You need to use transparency in
your *.ico to give the icon a non-square look (as the standard windows
"volume control" icon does.) Visual Studio is capable of creating such
icons.
I think Nick is correct... the standard Win32 API does not allow for
"multi-slot" tray icons.
--
Colin Neller http://www.colinneller.com/blog
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:en**************@TK2MSFTNGP15.phx.gbl... Benny,
You can't do this. The icon has to be 16x16 I believe. No other size is allowed.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard.caspershouse.com
"Benny Raymond" <be***@pocketrocks.com> wrote in message news:uR*************@TK2MSFTNGP10.phx.gbl...I searched for a couple hours lastnight on example code of how to go about making an item in the System Tray (notification area) not be square. I've found several programs that do this but I can't seem to find any documentation on how to actually get this to work.
I checked out some system messages that NotifyIcon uses thinking that I could just make my component from scratch using these but nothing seemed to be allowed to adjust the width of the icon.
Does anyone have any ideas? Eventually I want to have an item that takes up two slots horizontaly, or an area like the clock - I know I can create text by making a bitmap, drawing on it, and converting to an icon - that's all working - but actually getting that to show up correctly is giving me a headache.
Thanks in advance, Benny
If it's not possible, how are programs doing it? Check out this program
for instance: http://www.birdcagesoft.com.au/ (click on the weather software button)
and this one: http://www.zonetick.com/ (they have all sorts of different non standard
icons showing up)
both are completely different types of programs and both have non
standard "icons"
Nicholas Paldino [.NET/C# MVP] wrote: Benny,
You can't do this. The icon has to be 16x16 I believe. No other size is allowed.
Hope this helps.
I know about transparency in icons - I use it all the time - what i'm
talking about is different - please see my post RE Nicholas's post
Colin Neller wrote: Benny,
I suspect you are having trouble differentiating between image formats. The format used in the system tray is *.ico - You need to use transparency in your *.ico to give the icon a non-square look (as the standard windows "volume control" icon does.) Visual Studio is capable of creating such icons.
I think Nick is correct... the standard Win32 API does not allow for "multi-slot" tray icons.
Those programs don't appear to be written in .NET. You can always make a
PInvoke call to get to the unmanaged Win32 API. Try searching through the
Win32 forums or on www.pinvoke.net.
Alternatively, you could use a "toast" feature to keep the systray icon
small but popup a larger window periodically. Avalon (WPF) has very nice
support for Toast-style applications.
"Benny Raymond" <be***@pocketrocks.com> wrote in message
news:Oc**************@TK2MSFTNGP14.phx.gbl... If it's not possible, how are programs doing it? Check out this program for instance:
http://www.birdcagesoft.com.au/ (click on the weather software button)
and this one:
http://www.zonetick.com/ (they have all sorts of different non standard icons showing up)
both are completely different types of programs and both have non standard "icons"
Nicholas Paldino [.NET/C# MVP] wrote: Benny,
You can't do this. The icon has to be 16x16 I believe. No other size is allowed.
Hope this helps.
Benny, both are completely different types of programs and both have non standard "icons"
I don't think those are icons at all, but rather windows parented in
the notification area beside the toolbar holding the regular icons. In
other words it's a hack and not something supported through any API.
Do you have to place your GUI thingy in the notification area?
Wouldn't a supported extensibility way such as a desk band be an
option? http://msdn.microsoft.com/library/en..._adv/bands.asp
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
I was about to write a simular response - after taking a quick look
through the pinvoke website I still couldn't find a way of doing it. I
guess doing a bad would be a friendlier way of doing this, however I
wanted my item to work as if it was a notification icon but take up 2
spaces instead of the normal 1 space. Perhaps I'll look a little more
into how to actually get a control to show up in the notification area
then then give up in a few weeks ;)
~benny
Mattias Sjögren wrote: Benny,
both are completely different types of programs and both have non standard "icons"
I don't think those are icons at all, but rather windows parented in the notification area beside the toolbar holding the regular icons. In other words it's a hack and not something supported through any API.
Do you have to place your GUI thingy in the notification area? Wouldn't a supported extensibility way such as a desk band be an option?
http://msdn.microsoft.com/library/en..._adv/bands.asp
Mattias This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mats-Lennart Hansson |
last post by:
Hi,
I'm having a hard time getting my service to show a sys tray icon. I've
tried to create a separate Windows application where I simply add a
notification icon to the form. In the OnStart method...
|
by: Danielb |
last post by:
I want my application to run most of the time as just an notify icon
visible in the system tray, with some dialogs windows that open if the user
selects an option from the context menu on the tray...
|
by: utkarsh |
last post by:
Hi,
I want to develop a Window Service in C# that should be capable of
sisplaying the a icon in the window tray.
Based on some logic in service, icon should be changed to some other...
|
by: BJ |
last post by:
I am trying to add my application to the system tray. I am
not using the built in control becuase of the limitation
that you can not use the balloon tool tip feature. I have
done this succesfully...
|
by: george d lake |
last post by:
Hi,
I have an app that runs in the system tray. When I exit the app (from a
button on a form) the app ends but the icon stays in the tray.
Any ideas?
here is the code I use to end the app
...
|
by: Stanley |
last post by:
Hi all the helpful people out there! I want to dectect system tray so
that when an icon is added to the tray, it will alert me! Just like the
Printer icon appear with someone prints! Thanks in...
|
by: Avi G |
last post by:
Hi,
i've created an application and i want it to be minimized to the sys tray,
how i do it?
if you can direct me step by step even with create a small application and
put it in the sys tray
...
|
by: Patrick Dugan |
last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots
up. Occasionally the icon that should appear in the system tray does not
show up. The program is still running in memory...
|
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= |
last post by:
Hi,
how can i remove/disable the tray icon for the
started Express Edition from the system tray.
Te icon directs me to the express editons
website after clicking on it. I dont want these
tray...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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...
|
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...
| |