473,396 Members | 1,760 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,396 software developers and data experts.

Tray icon etc. not showing when started by Service

Hi
I have an control app which starts up with a small info message then sits
down as a tray icon while it does its work. When started manually (e.g.from a
shortcut) this always works fine. However the app is designed to start
automatically (via a windows service) whoever is logged on. Sometimes, when
started by the service, neither the info message nor the tray icon appear.
The app is working fine in the background, but without the tray icon users
can't make adjustments to the app.
Why should the app behave differently in this way?
Nov 16 '05 #1
2 1742
quilkin wrote:
Hi
I have an control app which starts up with a small info message then sits
down as a tray icon while it does its work. When started manually (e.g.from a
shortcut) this always works fine. However the app is designed to start
automatically (via a windows service) whoever is logged on. Sometimes, when
started by the service, neither the info message nor the tray icon appear.
The app is working fine in the background, but without the tray icon users
can't make adjustments to the app.
Why should the app behave differently in this way?


Are you handling the proper user logon events and registering your icon at that
time, or just during your startup (when no user is logged on)?
Nov 16 '05 #2
Julie

I'm not handling lgone events (is there an evenmt handler for this - what's
it called?) but after doing some tests this seems not to be the problem. In
fact every time the system starts from a reboot (even if nobody logs on for
several minutes) the icon appears.
It's most likely not to appear when the app is stopped then restarted by
stopping and then restarting the control service, with the same user logged
on throughout.
Although this is not a likely sequence to manually go through, it is in
effect what happens if the main app freezes and the control app then does its
job of restarting the main app.

"Julie" wrote:
quilkin wrote:
Hi
I have an control app which starts up with a small info message then sits
down as a tray icon while it does its work. When started manually (e.g.from a
shortcut) this always works fine. However the app is designed to start
automatically (via a windows service) whoever is logged on. Sometimes, when
started by the service, neither the info message nor the tray icon appear.
The app is working fine in the background, but without the tray icon users
can't make adjustments to the app.
Why should the app behave differently in this way?


Are you handling the proper user logon events and registering your icon at that
time, or just during your startup (when no user is logged on)?

Nov 16 '05 #3

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

Similar topics

9
by: none | last post by:
Hello all, I wrote a shell program a few years ago in VB6 that needs to be modified. The problem I have is this: The SysAdmin uses this shell in place of Explorer, so there is no taskbar. When...
10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
3
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...
4
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...
3
by: Steve | last post by:
Hello-- I have made a C# executable that monitors the server it is placed on. This works great so far. Since I don't have physical access to this machine, I have my executable launched by...
5
by: Casper | last post by:
I'm trying to get my program to run in the system tray. I've looked at dozend of tutorials on the web and on newsgroups but I just dont get it! Has anyone got any links or example code that ...
6
by: Amongin Ewinyu | last post by:
Hi, I have an application that is controlled by a service. when the service starts, an icon is supposed to be placed in the system tray and this icon is then used to display a balloon...
3
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...
3
by: Joseph Geretz | last post by:
The conventional approach is easy enough; drop a NotifyIcon onto a Form. When the form is loaded - bingo - the icon appears in the System Tray. I can't use this approach though. I'm writing a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...

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.