Click here to Skip to main content
15,892,737 members
Home / Discussions / C#
   

C#

 
AnswerRe: Out of Memory Exception while reading Text File Pin
Keith Barrow29-Jun-09 4:59
professionalKeith Barrow29-Jun-09 4:59 
AnswerRe: Out of Memory Exception while reading Text File Pin
Luc Pattyn29-Jun-09 5:01
sitebuilderLuc Pattyn29-Jun-09 5:01 
AnswerRe: Out of Memory Exception while reading Text File Pin
Dan Neely29-Jun-09 7:19
Dan Neely29-Jun-09 7:19 
QuestionHow to get textbox text lines count? Pin
swetha_insoft29-Jun-09 1:59
swetha_insoft29-Jun-09 1:59 
AnswerRe: How to get textbox text lines count? Pin
padmanabhan N29-Jun-09 2:08
padmanabhan N29-Jun-09 2:08 
GeneralRe: How to get textbox text lines count? Pin
swetha_insoft29-Jun-09 2:19
swetha_insoft29-Jun-09 2:19 
GeneralRe: How to get textbox text lines count? Pin
OriginalGriff29-Jun-09 2:40
mveOriginalGriff29-Jun-09 2:40 
GeneralRe: How to get textbox text lines count? Pin
Pete O'Hanlon29-Jun-09 2:52
mvePete O'Hanlon29-Jun-09 2:52 
AnswerRe: How to get textbox text lines count? Pin
K030629-Jun-09 2:08
K030629-Jun-09 2:08 
AnswerRe: How to get textbox text lines count? Pin
dan!sh 29-Jun-09 2:50
professional dan!sh 29-Jun-09 2:50 
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 

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.