473,748 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling a GUI in windows service

I am using VS.Net 2002 with windows 2000 advanced server and windows 2000
professional. I have a requirement to use windows service with a GUI.

I want to show my own User Interface(Dialo g) to get user input, before
windows login screen. For that I have created a windows service, in the
onstart event of this service, I am calling a vb.net exe, which has windows
form. But it throws error bcoz of the form. I even tried by calling a vb.net
dll from windows service with a msgbox in the dll ,i am getting the same
problem.
During this error, the DEBUG points to the form in the code.

Can someone please suggest a solution.

TIA,
Gary
Nov 20 '05 #1
3 8544
"Gary" <ms****@microso ft.com> wrote in
news:#5******** ******@TK2MSFTN GP12.phx.gbl:
I want to show my own User Interface(Dialo g) to get user input, before


What kind of input? Does this input change each time the service starts?
Perhaps you can collect this input during the installation and store it in
a configuration file. Then if you need to change it, either edit the
config file or have a windows app that configures the service.

Nov 20 '05 #2
Thanks Tom,

I want to know whether a windows service which is created in vb.net can be
installed on windows 98 .
If so.... how ?

Please help me.
Thanks again,
Gary

"Tom Spink" <th**********@n tlworld.com> wrote in message
news:en******** ******@TK2MSFTN GP10.phx.gbl...
Unfortunately, you can't just load a program before the login screen and
display it, because the Login screen is on a separate desktop.

You will have to write a Windows GINA to do this, which is not possible in
any .NET language, only C++ or Delphi.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit
"Gary" <ms****@microso ft.com> wrote in message
news:#5******** ******@TK2MSFTN GP12.phx.gbl...
I am using VS.Net 2002 with windows 2000 advanced server and windows 2000 professional. I have a requirement to use windows service with a GUI.

I want to show my own User Interface(Dialo g) to get user input, before
windows login screen. For that I have created a windows service, in the
onstart event of this service, I am calling a vb.net exe, which has

windows
form. But it throws error bcoz of the form. I even tried by calling a

vb.net
dll from windows service with a msgbox in the dll ,i am getting the same
problem.
During this error, the DEBUG points to the form in the code.

Can someone please suggest a solution.

TIA,
Gary


Nov 20 '05 #3
Hello,

"Gary" <ms****@microso ft.com> schrieb:
I want to know whether a windows service which is created in vb.net can be
installed on windows 98 .
If so.... how ?


No---MSDN:

<msdn>
Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000,
Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
</msdn>

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

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

Similar topics

0
1662
by: Michael Brandt Lassen | last post by:
Hi gurus This problem is about calling Web services secured by Forms Authentication from Windows Forms user controls embedded in HTML. Using the object tag I’ve managed to include a Windows Forms user control in my HTML page (a .NET alternative to good old ActiveX). I’d like to use my control to call web-services instead of using behaviours (webservices.htc).
3
5139
by: belgiozen | last post by:
Hi, I have a working windows service,it is looking for files on the disk and when some of the files are cupdated it calls an executable. But it takes a lot of time(about 10 minutes) to run the executable.So while that executable is running,if I try to stop the windows service while the executable(MYPROGRAM.EXE) is running,it will wait for a time(about 20 seconds) for the main windows thread to abort.If it does not finish its work, the...
1
5795
by: Bucky Pollard | last post by:
I have a web service that needs to create a batch file and call it (since there are no APIs for the functionality I am looking for). I am using the Process and ProcessStartInfo objects. When I try to call the batch file, it just returns with a return code of 1. When I call cmd.exe, and pass the batch file as a parameter it hangs. After much frustration and aggrevation, I found that CMD IS in fact running, but it is running under the context...
3
9100
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
1
1423
by: Jaime Stuardo | last post by:
i all, I have a web service in a Windows 2003 Server machine and ASP.NET 2.0. The website has windows integrated security so that, in order to allow domain users to connect to it, I add permissions using Front Page Server extensions. What about calling the web service over the Internet? do I need to create a special account on the machine and allow access to the website? Do you have an example of calling a web service under these...
5
2599
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is fine so far. My problem is that when I call a web method to modify the dataset inside the Web service it is never updated and I get no errors. currentPeriods method will always give me 1 even if I call ChangeDataset and call currentPeriods...
1
1285
by: Manuel Brandao | last post by:
Hi all I would like to now the answer to the following problem, if someone can help. Given a windows application client that's calling a web service (using default credentials) the web service gets invoked fine with the users credentials. However they need to call a second web service from the first one. When it hits the
7
10874
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test application. However, it generates a kind of security error after I install and start the service in my Window Server machine. I believe that it is related to authentication. The following is the sample code: HttpWebRequest obj =...
1
2036
by: samdediacre | last post by:
Hi all, I have developped a very simple Windows service that references a managed .NET dll. the code within the dll contains a static class to read/write data from registry. So the OnStart() method of the service simply calls the dll to read info from registry, but the static method reading info fails to execute... the dll tested within a console or winform application works fine (i can call the static class and get the info i want) So i...
0
9555
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, 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...
1
9329
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,...
1
6796
isladogs
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...
0
6076
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();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4878
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
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
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.