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? 2 1758
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)?
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)? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 his users run PC Anywhere from the shell, and minimize
it, it minimizes to the system tray. With no task bar, there is no
system tray, so there is no way to restore the PC Anywhere window.
The shell starts PC Anywhere using ShellExecute. I...
|
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 above the task bar.
Can't figure out why that happens - it looks very ugly...
Any ideas ?
Zeljko
|
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 of the service I simply
try to start the windows application which then should show the icon.
I can't get it to work! When I run the separate Windows application the icon
turns up, but when I start it from the service it doesn't. How should I...
|
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
color/image and I needed single click, double click event and context
menu also on that tray icon to perform some other operation and show
some window form.
|
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 task manager and it runs in the background. Its
owner is SYSTEM, so that when I log out of terminal services, the
application is still running.
| |
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 could use?
I'm using Microsoft Visual Basic 2005 Express Edition.
Thanks in advance.
|
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 intermittently. the problem is that when the
icon is placed in the balloon and for some time after this, it is visible in
the system tray, but after some time if i try to hover the mouse over the
icon, it then disappears, although i still get a message...
|
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 but the tray icon is not
there. If I start the program after Windows has booted up the icon shows
every time. I am assuming that the reason is due to the icon being created
before the system tray is loaded/running. I have used a timer with...
|
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 service. But I'd like my
service to install an icon on the System Tray so that the user can start /
stop / and otherwise control the service interactively, and without having
to go to the Services applet. How do I do this?
Thanks for your advice.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |