473,795 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to pop up window form in windows service

windows service always running in the background. but in my case, when
running into a certain situation, I need to pop up a window form to notify
the user, how can I accomplish? I have tried to use Process.start, It really
run, but still keep in background.

Jul 21 '05 #1
3 4508
Jim,

Make sure you click the "Allow service to interact with desktop" checkbox on
the "Log On" tab of the properties page for the service.

"jim656" wrote:
windows service always running in the background. but in my case, when
running into a certain situation, I need to pop up a window form to notify
the user, how can I accomplish? I have tried to use Process.start, It really
run, but still keep in background.

Jul 21 '05 #2
Jorge:

Problem still remains. I have tried the method you refered . Only
difference, this time, application's name disappear from task manager,
before, I could see the name of application in the process tab of task
manager. (I use Process.star to lanuch another application.)

could u give me more hint?
"Jorge L Matos" wrote:
Jim,

Make sure you click the "Allow service to interact with desktop" checkbox on
the "Log On" tab of the properties page for the service.

"jim656" wrote:
windows service always running in the background. but in my case, when
running into a certain situation, I need to pop up a window form to notify
the user, how can I accomplish? I have tried to use Process.start, It really
run, but still keep in background.

Jul 21 '05 #3
"jim656" <ji****@discuss ions.microsoft. com> wrote in message
news:0E******** *************** ***********@mic rosoft.com...
Jorge:

Problem still remains. I have tried the method you refered . Only
difference, this time, application's name disappear from task manager,
before, I could see the name of application in the process tab of task
manager. (I use Process.star to lanuch another application.)
Ideally you should never popup a form or message box from a service. Rather
have a client application (perhaps residing in the notification bar) that
monitors the service and pops up the form.
could u give me more hint?

"Jorge L Matos" wrote:
Jim,

Make sure you click the "Allow service to interact with desktop" checkbox
on
the "Log On" tab of the properties page for the service.

"jim656" wrote:
> windows service always running in the background. but in my case, when
> running into a certain situation, I need to pop up a window form to
> notify
> the user, how can I accomplish? I have tried to use Process.start, It
> really
> run, but still keep in background.

Jul 21 '05 #4

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

Similar topics

8
6298
by: Rob Wahmann | last post by:
I'm having trouble with the following code appending the form name and an empty value to the end of the url. Can anyone tell me what's wrong? I appreciate any tips or advice you can pass along! Rob // submits info like this: http://www.google.com/?select= <script type="text/javascript"> function launchIt() {
4
1937
by: Brad Jones | last post by:
<Previously posted in microsoft.public.dotnet.framework.windowsforms> Hi all. Any suggestions here would be appreciated. Thanks for reading. I'm primarly a C++ developer but I've been trying to complete development on a C# application with the following basic requirements: - The app runs in the background is initially hidden from the user, including the Windows Taskbar. - The app needs to receive a registered Windows message - The app...
4
7996
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.
3
364
by: jim656 | last post by:
windows service always running in the background. but in my case, when running into a certain situation, I need to pop up a window form to notify the user, how can I accomplish? I have tried to use Process.start, It really run, but still keep in background.
4
17500
by: drodrig | last post by:
Hi. I am trying to close/kill all processes that show visible windows on Windows XP. So far I've created a script that uses win32gui.EnumWindows to iterate through all windows, check for which windows are visible, then send a WM_CLOSE message to the window to request that it closes. Of course, not all apps want to close nicely. At this point I need to use something like TerminateProcess to kill the app, but how do I find the process id...
4
7202
by: ianyian | last post by:
hi experts, im doing some staff bween th the aspx + MS Word.chellcheck, and and which running on my ypc is no problem ( windows xp , activation by ASPNET ), buts someshow when i try to deploy to server ( windows 2003 ) + IIS 6.0 , hen which giee the error = Object reference not set to an instance of an object.This method or property is not available because a document window is not active. and i have try to configure for the component...
1
1303
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have created a very simple window service. This window service in turn is calling a function that exist in a windows form. When I am trying to run this windows service. window service does not run and start throwing error message. Once I remove the windows form and put that same method in a class and call that class from window service, It works. I was wondering is it possible to run the window service that is calling...
7
8639
by: =?Utf-8?B?Vmlua2k=?= | last post by:
public void sendKeysTest() { Process myProcess = Process.Start(@"C:\winnt\system32\cmd.exe"); SetForegroundWindow(myProcess.Handle); if (myProcess.Responding) SendKeys.SendWait("{ENTER}"); else
12
6543
by: Dilip | last post by:
Hi All I have a server based C# console application. This application must hide its console window when its launched out on the field. So I dutifully P/Invoke'd FindWindow/ShowWindow combination to hide the console window at launch time. The application (for legacy reasons) hangs around by waiting on an old- fashioned Console.ReadLine() statement.
0
9672
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, 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...
0
9519
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,...
0
10213
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 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...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
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, 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...
0
6780
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();...
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.