473,790 Members | 3,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can services have forms?

jim
I thought that I read somewhere that services don't (or can't) have forms.

Is that true?

Jul 7 '07 #1
25 1254

"jim" <ji*@yourpc.edu wrote in message
news:nk******** **********@bign ews5.bellsouth. net...
>I thought that I read somewhere that services don't (or can't) have forms.

Is that true?
A service doesn't use forms, because the service is meant to run unattended
once it's started/executed, with no user interfacing.

But a Windows desktop application using a form can communicate with with a
service application, just like you see a personal firewall UI that
communicates with its FW service application.

Jul 7 '07 #2
jim

"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:%2******** *******@TK2MSFT NGP04.phx.gbl.. .
>
"jim" <ji*@yourpc.edu wrote in message
news:nk******** **********@bign ews5.bellsouth. net...
>>I thought that I read somewhere that services don't (or can't) have forms.

Is that true?

A service doesn't use forms, because the service is meant to run
unattended once it's started/executed, with no user interfacing.

But a Windows desktop application using a form can communicate with with
a service application, just like you see a personal firewall UI that
communicates with its FW service application.
Do you know of any examples of this that I can learn from?
Jul 7 '07 #3
"jim" <ji*@yourpc.edu wrote in message
news:nk******** **********@bign ews5.bellsouth. net...
>I thought that I read somewhere that services don't (or can't) have forms.

Is that true?
Nope, not true at all. A Windows Service can have all the forms it want.
There's even a handly little "Allow Service to Interact with Desktop" check
box you can explore in the service admin screen.

Now, as to the wisdom of having a Windows Service do Forms, that's another
story. If you go this route, you need to have a good answer for "What to do
if nobody is logged in?", and all of the edge cases around that.

Most people solve this by having the Service not have any Forms code, and
instead use a Remoting Proxy and an Admin Application. This seems to work
better. Just go look up "Remoting" and you'll find a number of examples all
over CodeProject.

If you want forms in your service simply for the sake of debugging, you can
take the hybrid approach:
http://www.coversant.com/dotnetnuke/...=88&EntryID=19

The approach I talk about there works for Console and WinForms apps.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise , Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Jul 8 '07 #4

"jim" <ji*@yourpc.edu wrote in message
news:Oi******** *********@bigne ws5.bellsouth.n et...
>
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:%2******** *******@TK2MSFT NGP04.phx.gbl.. .
>>
"jim" <ji*@yourpc.edu wrote in message
news:nk******* ***********@big news5.bellsouth .net...
>>>I thought that I read somewhere that services don't (or can't) have
forms.

Is that true?

A service doesn't use forms, because the service is meant to run
unattended once it's started/executed, with no user interfacing.

But a Windows desktop application using a form can communicate with
with a service application, just like you see a personal firewall UI that
communicates with its FW service application.

Do you know of any examples of this that I can learn from?
This is a C# example and everything that's being done in C# as far as using
the namespace can be done in VB.NET as well.

http://www.codeproject.com/csharp/se...controller.asp

You can also issue custom commands to the service.

http://dotnetjunkies.com/Tutorial/C4...643EEF8A6.dcik

It's a one way communications, but you could create trigger files or other
means in the service to let the Windows application know that an event has
happened, as an example.

Jul 8 '07 #5
Oh, one other thing I like to do when debugging a service application,
particularly, when debugging a library that I have written that the service
is using and I need to send messages to help in the debugging is do NET Send
commands back to the workstation the service is running on. The Windows
Messenger service must be enabled on the machine so that messages can be
seen, with a popup message window being displayed.

Jul 8 '07 #6
jim

"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:Oc******** ******@TK2MSFTN GP02.phx.gbl...
>
"jim" <ji*@yourpc.edu wrote in message
news:Oi******** *********@bigne ws5.bellsouth.n et...
>>
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:%2******* ********@TK2MSF TNGP04.phx.gbl. ..
>>>
"jim" <ji*@yourpc.edu wrote in message
news:nk****** ************@bi gnews5.bellsout h.net...
I thought that I read somewhere that services don't (or can't) have
forms.

Is that true?

A service doesn't use forms, because the service is meant to run
unattended once it's started/executed, with no user interfacing.

But a Windows desktop application using a form can communicate with
with a service application, just like you see a personal firewall UI
that communicates with its FW service application.

Do you know of any examples of this that I can learn from?

This is a C# example and everything that's being done in C# as far as
using the namespace can be done in VB.NET as well.
Are you aware that you are in a VB.Net newsgroup?

Jul 8 '07 #7
Are you aware that you are in a VB.Net newsgroup?

Are you aware that there is practically no difference beetween C# and
VB.Net?
Jul 8 '07 #8

"jim" <ji*@yourpc.edu wrote in message
news:xW******** ********@bignew s4.bellsouth.ne t...
>
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:Oc******** ******@TK2MSFTN GP02.phx.gbl...
>>
"jim" <ji*@yourpc.edu wrote in message
news:Oi******* **********@bign ews5.bellsouth. net...
>>>
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:%2****** *********@TK2MS FTNGP04.phx.gbl ...

"jim" <ji*@yourpc.edu wrote in message
news:nk***** *************@b ignews5.bellsou th.net...
>I thought that I read somewhere that services don't (or can't) have
>forms.
>
Is that true?

A service doesn't use forms, because the service is meant to run
unattended once it's started/executed, with no user interfacing.

But a Windows desktop application using a form can communicate with
with a service application, just like you see a personal firewall UI
that communicates with its FW service application.

Do you know of any examples of this that I can learn from?

This is a C# example and everything that's being done in C# as far as
using the namespace can be done in VB.NET as well.

Are you aware that you are in a VB.Net newsgroup?
Yes, I am aware I am in a VB NG. However, most examples of things are in C#
..Net. You can search Google and see if you can find some examples in VB.

Once again, there is no difference between C# and VB.Net. The only
difference between the two languages are syntactical. You should be able to
take the C# example and come out with a VB example doing the same thing.

Jul 8 '07 #9
I comunicate with a few of my services with remoting

this might be an option for you to
Michel
"Mr. Arnold" <MR. Ar****@Arnold.c omschreef in bericht
news:Oc******** ******@TK2MSFTN GP02.phx.gbl...
>
"jim" <ji*@yourpc.edu wrote in message
news:Oi******** *********@bigne ws5.bellsouth.n et...
>>
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:%2******* ********@TK2MSF TNGP04.phx.gbl. ..
>>>
"jim" <ji*@yourpc.edu wrote in message
news:nk****** ************@bi gnews5.bellsout h.net...
I thought that I read somewhere that services don't (or can't) have
forms.

Is that true?

A service doesn't use forms, because the service is meant to run
unattended once it's started/executed, with no user interfacing.

But a Windows desktop application using a form can communicate with
with a service application, just like you see a personal firewall UI
that communicates with its FW service application.

Do you know of any examples of this that I can learn from?

This is a C# example and everything that's being done in C# as far as
using the namespace can be done in VB.NET as well.

http://www.codeproject.com/csharp/se...controller.asp

You can also issue custom commands to the service.

http://dotnetjunkies.com/Tutorial/C4...643EEF8A6.dcik

It's a one way communications, but you could create trigger files or
other means in the service to let the Windows application know that an
event has happened, as an example.

Jul 8 '07 #10

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

Similar topics

3
2507
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not Web Forms) that serves as a thin client to some web services. In other words, the Windows Forms app will be installed on the client machines and that app will call web services that are deployed on my server.
13
1313
by: david | last post by:
I met the security problem. I have developed the form based security for ASP.NET appliation. However, it seems that my window based client for my Web services application can not access to the server side. How to overcome this situation? Thanks David
1
3454
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm going wrong. The program has been written to do the following tasks: - Select remote server - Select from two specific services
0
3940
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server - Select from two specific services - Check the status of the server
2
1252
by: Ed Staffin | last post by:
Hi all, I sent this the other day but got no responses, so, I thought I would try again. I am thinking about the next version of my application (it's an accounting app) and it would seem that web services might be quite useful. If I can get rid having to create a web app, and instead can use a regular windows app on the client, that would be fantastic. Can I look at web services as a better DCOM? How is performance? Is this just another...
0
1059
by: SenthilVel | last post by:
Hi I want to list the available "Component Services " (COM+) in a machine . i am trying to get the list of Componenet services in a machine using windows forms in dotnet , how can i retrive the list of componenet services, i know we can get the list of windows services, but i dont know how to get the list of Component services ?
6
1599
by: David++ | last post by:
Hi folks, So I have implemented a Web service which provides several Web Methods. Before the client can use the WebMethods they must first be authenticated and authorized i.e. they login, obtain a string 'ticket' and then must use this ticket to make subsequent calls to the Web Methods. Users are validated by checking to see if they exist in the web.config file which looks like this -
6
2009
by: Simon Harvey | last post by:
Hi everyone, We have a need to make a Windows Forms (2.0) client application that will be installed on our clients site. The data that the application uses needs to be centrally available to a potentially large number of other sites, which would seem to leave us with our traditional approach, or having a central database server on a dedicated server someplace.
1
5704
by: jasonnance77 | last post by:
I have built a SSIS package which runs fine in BIDS. I went into Sql Server Management Studio and created a new job and job step. When I select the SQL Server Integration Services Package, I get the below error. There are no options on selecting a SSIS package. I searched this error for about 5 hours yesterday and the only solution I could find was a user who rebooted their server which fixed this problem. I did restart the server,...
0
9666
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
10201
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
10147
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
9987
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
9023
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
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
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
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
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.