Click here to Skip to main content
15,896,727 members
Home / Discussions / C#
   

C#

 
GeneralRe: sDataGrid Pin
V.3-May-05 23:47
professionalV.3-May-05 23:47 
GeneralRe: sDataGrid Pin
Illegal Operation4-May-05 19:50
Illegal Operation4-May-05 19:50 
GeneralRe: sDataGrid Pin
V.4-May-05 23:01
professionalV.4-May-05 23:01 
QuestionHow to add user Controls for Forms? Pin
pubududilena3-May-05 20:07
pubududilena3-May-05 20:07 
AnswerRe: How to add user Controls for Forms? Pin
Joshua Nussbaum3-May-05 20:14
Joshua Nussbaum3-May-05 20:14 
AnswerRe: How to add user Controls for Forms? Pin
spif20013-May-05 20:17
spif20013-May-05 20:17 
AnswerRe: How to add user Controls for Forms? Pin
pubududilena4-May-05 0:24
pubududilena4-May-05 0:24 
GeneralExecuting 2 Service classes in a single windows service Pin
rameedev3-May-05 19:44
rameedev3-May-05 19:44 
Hi All

I have a windows service with 2 service classes.. and in the OnStart()method of both classes i am doing a event log to check if both are started.. When i install the service and run it by clicking on it..It Shows message from the first Service Class.. I dont know what to do..Please Help

Regards
RameeDev

public CFirst()
{
InitializeComponent();
if(!EventLog.SourceExists("CFirstLog"))
{
EventLog.CreateEventSource("CFirstLog","CFirstLog");
}
evLog = new EventLog("CFirstLog");
evLog.Source = "CFirstLog";
}

static void Main()
{
System.ServiceProcess.ServiceBase[] ServicesToRun;
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new CFirst(),new CSecond()};
System.ServiceProcess.ServiceBase.Run(ServicesToRun);
}

protected override void OnStart(string[] args)
{
evLog.WriteEntry("CFirst Started");
}

I am doing the same in CSecond Class



rameedev
GeneralPreserving details of trial peiod in C# Pin
Anonymous3-May-05 19:36
Anonymous3-May-05 19:36 
GeneralRe: Preserving details of trial peiod in C# Pin
Christian Graus3-May-05 19:44
protectorChristian Graus3-May-05 19:44 
GeneralRe: Preserving details of trial peiod in C# Pin
Anonymous3-May-05 20:42
Anonymous3-May-05 20:42 
GeneralRich text box Pin
StephenMcAllister3-May-05 16:41
StephenMcAllister3-May-05 16:41 
GeneralRe: Rich text box Pin
Ali Iqbal Khan3-May-05 18:46
Ali Iqbal Khan3-May-05 18:46 
GeneralRe: Rich text box Pin
StephenMcAllister3-May-05 19:14
StephenMcAllister3-May-05 19:14 
GeneralRe: Rich text box Pin
mav.northwind3-May-05 22:13
mav.northwind3-May-05 22:13 
Generalmake new folder in web site Pin
ABBASI_RA3-May-05 15:43
ABBASI_RA3-May-05 15:43 
GeneralRe: make new folder in web site Pin
Christian Graus3-May-05 16:12
protectorChristian Graus3-May-05 16:12 
GeneralTreeview Pin
StephenMcAllister3-May-05 15:01
StephenMcAllister3-May-05 15:01 
GeneralRe: Treeview Pin
Christian Graus3-May-05 15:08
protectorChristian Graus3-May-05 15:08 
GeneralRe: Treeview Pin
S. Senthil Kumar3-May-05 20:27
S. Senthil Kumar3-May-05 20:27 
GeneralParrallism in .NET Pin
Joshua Nussbaum3-May-05 14:47
Joshua Nussbaum3-May-05 14:47 
GeneralRe: Parrallism in .NET Pin
HopeDagger3-May-05 17:29
HopeDagger3-May-05 17:29 
GeneralArticles or sites on creating DLLs in C# Pin
Anonymous3-May-05 11:47
Anonymous3-May-05 11:47 
GeneralRe: Articles or sites on creating DLLs in C# Pin
MoustafaS3-May-05 12:05
MoustafaS3-May-05 12:05 
Generalvolume name of a CD Pin
novadProt3-May-05 11:45
novadProt3-May-05 11:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.