473,386 Members | 1,962 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,386 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 4476
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
Oralloy
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,...
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...

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.