473,414 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Systray icons

I am working on a program that is an explorer.exe like program, right now, I am working on the system tray icons. I have looked many places, but have not seem to have found an answer. All I need is the GDI Bitmap, for I am going to pass it to a C# application. Is this even possible?
Sep 12 '09 #1
7 2398
Savage
1,764 Expert 1GB
@byteit101
I'm not sure if I understood you well, could you please rephrase your question or give us some simple example of what are you trying to do?
Sep 12 '09 #2
I am making a taskbar/system tray application in C#, and need the GDI Bitmap for each of the system tray icons.
Sep 12 '09 #3
Banfa
9,065 Expert Mod 8TB
I believe that the system tray uses icons rather than bitmaps, well the WIN32 API did anyway.

Just draw them and add them as resources to your program.
Sep 13 '09 #4
@Banfa
You are misunderstanding what I want to do, I want to get the Icons from the system tray, and create my own system tray. I already know how to make one appear, I want to get them.
Sep 13 '09 #5
Savage
1,764 Expert 1GB
You might want to check code of this sample program then ^^

,kind regards.

NOTE:As you will probably see code is written in C++,but you should be able to use it in .NET projects by using PInvoke.
Sep 13 '09 #6
@Savage
Ah! Perfect!
I am planning to write a Native and C++/CLI mixed dll, then referencing it in C#
Sep 13 '09 #7
@Savage
This code is wrong.
You must never hard code windows class names (!)
(different for each OS and SP)
And the method is also very bad (you must do explorer code injection..)
Sep 14 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Yo | last post by:
I want to put an icon in the systray. I don't think VBA does this. Is there a VC++ or C++ Function or Sub that I can declare that will allow me to create a systray icon (or is it...
0
by: charlesh3 | last post by:
Hi - I'd like to write a VB6 program to add a couple of text based clocks (for different time zones) to the systray so they'll always be visible. I can add an icon to the systray, but the API's...
6
by: Action | last post by:
I can add a systray icon in normal windows application... but when i do it in windows service, the systray icon just don't show up is that because i don't have any "component" to contain the...
3
by: Jon Bosker | last post by:
I have written an application that lives in the systray but when I try to close windows or logout it does not close my application and therefore prevents windows from shutting down or logging me...
1
by: Fast Eddie | last post by:
Can anyone tell me a good way to make a blinking systray icon? I want it to alternate between two icons. I've tried toggling between two notifyIcons and alternating the visible variable - but that...
1
by: Franck | last post by:
Is there a way to recover all the running app in the taskbar (include "my computer", "C:\", etc..) and all the icons in the systray ? and interact with it like under windows ? I want to write my...
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
8
by: Rob R. Ainscough | last post by:
I have a VS 2005 Windows Service with a Installer project as part of my solution. The Service installs fine but I can't seem to make either of these work: 1. Have the service start after...
1
by: josejoa | last post by:
Someone is so kindly to tell me how can I achieve the handle and corrdinates of an specific systray icon when mouse enter and exit of it? Thank you.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.