472,783 Members | 1,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 4425
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****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.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
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! ...
4
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...
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: 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...
4
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...
4
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...
1
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...
7
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}");...
12
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...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.