Click here to Skip to main content
15,389,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 3:00
MemberJ4amieC29-Jun-09 3:00 
GeneralRe: how to use windows service in another project? Pin
Narendra Reddy Vajrala29-Jun-09 3:05
MemberNarendra Reddy Vajrala29-Jun-09 3:05 
GeneralRe: how to use windows service in another project? Pin
himanshu256129-Jun-09 3:09
Memberhimanshu256129-Jun-09 3:09 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 4:21
MemberJ4amieC29-Jun-09 4:21 
GeneralRe: how to use windows service in another project? Pin
Vikram A Punathambekar29-Jun-09 5:35
MemberVikram A Punathambekar29-Jun-09 5:35 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 5:46
MemberJ4amieC29-Jun-09 5:46 
AnswerRe: how to use windows service in another project? Pin
Vikram A Punathambekar29-Jun-09 3:07
MemberVikram A Punathambekar29-Jun-09 3:07 
Generalcan you please check this code? Pin
Narendra Reddy Vajrala29-Jun-09 3:14
MemberNarendra Reddy Vajrala29-Jun-09 3:14 
my code is like this in windows services class
<br />
protected override void OnStart(string[] args)<br />
{<br />
insertValues(3, "Naresh Kumar", "3658213641", "Begumpet, Hyderabad");<br />
}<br />
<br />
public void insertValues(int custId, string custName, string custPhone, string custAdd)<br />
{<br />
string insertCommand = "Insert into CUSTOMER values ( " + custId + ",'" + custName + "','" + custPhone + "','" + custAdd + "')";<br />
con.Open();<br />
cmd = new SqlCommand(insertCommand, con);<br />
cmd.ExecuteNonQuery();<br />
con.Close();<br />
}<br />


when am trying run this service from computer Mangement
is it displaying below alert
"The service on local machine started and stopped. some services stopped automatically if they have no work to do for example the performance logs and alerts service."

please help me out
GeneralRe: can you please check this code? Pin
J4amieC29-Jun-09 4:20
MemberJ4amieC29-Jun-09 4:20 
Questioncreating excel workbooks from a given template in a particular folder Pin
Krishna Aditya29-Jun-09 1:07
MemberKrishna Aditya29-Jun-09 1:07 
AnswerRe: creating excel workbooks from a given template in a particular folder [modified] Pin
padmanabhan N29-Jun-09 1:31
Memberpadmanabhan N29-Jun-09 1:31 
QuestionDatagridview Column Header ReadOnly Pin
rhtbhegade28-Jun-09 21:43
Memberrhtbhegade28-Jun-09 21:43 
AnswerRe: Datagridview Column Header ReadOnly Pin
stancrm28-Jun-09 21:52
Memberstancrm28-Jun-09 21:52 
GeneralRe: Datagridview Column Header ReadOnly Pin
rhtbhegade29-Jun-09 1:48
Memberrhtbhegade29-Jun-09 1:48 
GeneralRe: Datagridview Column Header ReadOnly Pin
stancrm29-Jun-09 2:20
Memberstancrm29-Jun-09 2:20 
GeneralRe: Datagridview Column Header ReadOnly Pin
rhtbhegade29-Jun-09 2:56
Memberrhtbhegade29-Jun-09 2:56 
AnswerRe: Datagridview Column Header ReadOnly Pin
padmanabhan N28-Jun-09 22:09
Memberpadmanabhan N28-Jun-09 22:09 
QuestionRe: Datagridview Column Header ReadOnly Pin
KIDYA29-Jun-09 1:40
MemberKIDYA29-Jun-09 1:40 
AnswerRe: Datagridview Column Header ReadOnly Pin
padmanabhan N29-Jun-09 2:04
Memberpadmanabhan N29-Jun-09 2:04 
QuestionRecive data from sensor circuit Pin
sebogawa28-Jun-09 21:38
Membersebogawa28-Jun-09 21:38 
AnswerRe: Recive data from sensor circuit Pin
Christian Graus28-Jun-09 21:48
mveChristian Graus28-Jun-09 21:48 
AnswerRe: Recive data from sensor circuit Pin
DaveyM6928-Jun-09 22:10
professionalDaveyM6928-Jun-09 22:10 
AnswerRe: Recive data from sensor circuit Pin
OriginalGriff28-Jun-09 22:23
mveOriginalGriff28-Jun-09 22:23 
GeneralRe: Recive data from sensor circuit Pin
sebogawa28-Jun-09 22:27
Membersebogawa28-Jun-09 22:27 
QuestionFormat a float value in sql query Pin
arun_pk28-Jun-09 21:14
Memberarun_pk28-Jun-09 21:14 

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.