473,396 Members | 1,961 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,396 software developers and data experts.

2000,2003 and newest servers

my question is....
im finishing up some services.....

now with the new servers comming out
can we have a form embedded in the Dll
another words can i have a form based on startup is gonna be a NON UI
service or A UI interface

example

using System;
using System.Collections.Generic;
using System.ServiceProcess;
using System.Text;
using System.Configuration;
namespace MyNamespace
{
static class myclass
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(args[] string args)
{
if (args[1]=="yes")
{
// running as a Service
ServiceBase[] ServicesToRun;

// More than one user Service may run within the same process.
To add
// another service to this process, change the following line to
// create a second service object. For example,
//
// ServicesToRun = new ServiceBase[] {new Service1(), new
MySecondUserService()};
//
ServicesToRun = new ServiceBase[] { new Service1() };

ServiceBase.Run(ServicesToRun);
}
else
{
//running as a UI
application.Run(new Form1());
}
}

}

}
Oct 19 '07 #1
0 822

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

Similar topics

2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
2
by: Robert M. | last post by:
Information: Server A: SQL Server 2000 Enterprise Edition. OS is Windows 2003 Server Enterprise Edition. SQL Service pack is 3a. Member of domain ABCDomain. Server A is going to function as a...
1
by: John Lee | last post by:
Hi, I do not know where is the best place to post this type of question - everytime in this case I always choose this group because I think we have a lots of genius here in this group -...
0
by: SamIAm | last post by:
Hi there We are looking at having multiple Windows Server 2003 servers running in a web farm to host our .Net Web App. There are a few things that confuse me: 1) Windows Server 2003 includes...
4
by: Darren Li | last post by:
After I update the windows 2000 server with microsoft newest update. The ASP.NET application can not be run. It shows "Server Application Unavailable". I check the event log, the error says...
3
by: dean4if | last post by:
I have 4 Windows 2000 Servers. I have installed the DotNet Framework 2.0 on all 4 servers. Three of these servers show a tab for ASP.NET in the IIS MMC and are running Visual Studio 2003. ...
14
by: johnvon | last post by:
Can it be done, and if so, how? Thanks! John
0
by: patmg | last post by:
Hello, We use a SQL Server database to manage accounts in AD via a COM object using ADSI written in VB6. I have to move this database to a new server. The only real difference between the two...
4
by: David | last post by:
Hi all, I just asked some people to help me out and phone microsoft with the following information, kindly they refused unless we setup a support contract with them first, for pre-sales...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
0
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...

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.