Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get textbox text lines count? Pin
Henry Minute29-Jun-09 6:03
Henry Minute29-Jun-09 6:03 
Questionhow to use windows service in another project? Pin
Narendra Reddy Vajrala29-Jun-09 1:27
Narendra Reddy Vajrala29-Jun-09 1:27 
AnswerRe: how to use windows service in another project? Pin
himanshu256129-Jun-09 1:50
himanshu256129-Jun-09 1:50 
GeneralRe: how to use windows service in another project? Pin
Narendra Reddy Vajrala29-Jun-09 2:03
Narendra Reddy Vajrala29-Jun-09 2:03 
GeneralRe: how to use windows service in another project? [modified] Pin
himanshu256129-Jun-09 2:13
himanshu256129-Jun-09 2:13 
GeneralRe: how to use windows service in another project? [modified] Pin
Narendra Reddy Vajrala29-Jun-09 2:27
Narendra Reddy Vajrala29-Jun-09 2:27 
GeneralRe: how to use windows service in another project? Pin
himanshu256129-Jun-09 2:36
himanshu256129-Jun-09 2:36 
GeneralRe: Please check this code Pin
Narendra Reddy Vajrala29-Jun-09 2:52
Narendra Reddy Vajrala29-Jun-09 2:52 
am giving my code sample

<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: Please check this code Pin
himanshu256129-Jun-09 3:04
himanshu256129-Jun-09 3:04 
GeneralRe: Please check this code Pin
Narendra Reddy Vajrala29-Jun-09 3:11
Narendra Reddy Vajrala29-Jun-09 3:11 
GeneralRe: Please check this code Pin
himanshu256129-Jun-09 3:15
himanshu256129-Jun-09 3:15 
GeneralRe: how to use windows service in another project? Pin
himanshu256129-Jun-09 2:47
himanshu256129-Jun-09 2:47 
GeneralRe: how to use windows service in another project? Pin
Narendra Reddy Vajrala29-Jun-09 2:53
Narendra Reddy Vajrala29-Jun-09 2:53 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 3:00
J4amieC29-Jun-09 3:00 
GeneralRe: how to use windows service in another project? Pin
Narendra Reddy Vajrala29-Jun-09 3:05
Narendra Reddy Vajrala29-Jun-09 3:05 
GeneralRe: how to use windows service in another project? Pin
himanshu256129-Jun-09 3:09
himanshu256129-Jun-09 3:09 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 4:21
J4amieC29-Jun-09 4:21 
GeneralRe: how to use windows service in another project? Pin
Vikram A Punathambekar29-Jun-09 5:35
Vikram A Punathambekar29-Jun-09 5:35 
GeneralRe: how to use windows service in another project? Pin
J4amieC29-Jun-09 5:46
J4amieC29-Jun-09 5:46 
AnswerRe: how to use windows service in another project? Pin
Vikram A Punathambekar29-Jun-09 3:07
Vikram A Punathambekar29-Jun-09 3:07 
Generalcan you please check this code? Pin
Narendra Reddy Vajrala29-Jun-09 3:14
Narendra Reddy Vajrala29-Jun-09 3:14 
GeneralRe: can you please check this code? Pin
J4amieC29-Jun-09 4:20
J4amieC29-Jun-09 4:20 
Questioncreating excel workbooks from a given template in a particular folder Pin
Krishna Aditya29-Jun-09 1:07
Krishna 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
padmanabhan N29-Jun-09 1:31 
QuestionDatagridview Column Header ReadOnly Pin
rhtbhegade28-Jun-09 21:43
rhtbhegade28-Jun-09 21:43 

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.