Click here to Skip to main content
15,849,032 members
Home / Discussions / C#
   

C#

 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
OriginalGriff12-Feb-18 6:05
mveOriginalGriff12-Feb-18 6:05 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Gerry Schmitz12-Feb-18 7:40
mveGerry Schmitz12-Feb-18 7:40 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 7:44
Member 1367430012-Feb-18 7:44 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Gerry Schmitz12-Feb-18 7:51
mveGerry Schmitz12-Feb-18 7:51 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Member 1367430012-Feb-18 7:51
Member 1367430012-Feb-18 7:51 
GeneralRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
Gerry Schmitz12-Feb-18 7:59
mveGerry Schmitz12-Feb-18 7:59 
AnswerRe: Pls Provide me business logic method for reset password or forget password by user id... Pin
#realJSOP13-Feb-18 3:05
mve#realJSOP13-Feb-18 3:05 
QuestionStreamwriter only writes one item from textbox Pin
auting8212-Feb-18 3:34
auting8212-Feb-18 3:34 
I am trying to create a function in the GUI where I Logg the values from a textbox and then allow the user to save these values as a .csv file anywhere on the computer.
I have managed to do that, but when I open the files I only see one item from my textbox written in the text file, Why is that ?

C#
private void Logging()
        {    
            SaveFileDialog saveFileDialog1 = new SaveFileDialog();
            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.CreateNew))
                using (StreamWriter sw = new StreamWriter(s))
                {
                    
                    sw.WriteLine(textSampling.Text);
                    
                }
                   
            }

AnswerRe: Streamwriter only writes one item from textbox Pin
Richard MacCutchan12-Feb-18 6:59
mveRichard MacCutchan12-Feb-18 6:59 
GeneralRe: Streamwriter only writes one item from textbox Pin
auting8212-Feb-18 9:29
auting8212-Feb-18 9:29 
GeneralRe: Streamwriter only writes one item from textbox Pin
Richard MacCutchan12-Feb-18 9:40
mveRichard MacCutchan12-Feb-18 9:40 
AnswerRe: Streamwriter only writes one item from textbox Pin
Gerry Schmitz12-Feb-18 7:44
mveGerry Schmitz12-Feb-18 7:44 
GeneralRe: Streamwriter only writes one item from textbox Pin
auting8212-Feb-18 13:49
auting8212-Feb-18 13:49 
GeneralRe: Streamwriter only writes one item from textbox Pin
Gerry Schmitz12-Feb-18 14:10
mveGerry Schmitz12-Feb-18 14:10 
GeneralRe: Streamwriter only writes one item from textbox Pin
auting8212-Feb-18 14:37
auting8212-Feb-18 14:37 
GeneralRe: Streamwriter only writes one item from textbox Pin
Gerry Schmitz12-Feb-18 15:06
mveGerry Schmitz12-Feb-18 15:06 
Questionchange of status Pin
Member 1363217112-Feb-18 3:18
Member 1363217112-Feb-18 3:18 
AnswerRe: change of status Pin
Gerry Schmitz12-Feb-18 7:49
mveGerry Schmitz12-Feb-18 7:49 
AnswerRe: change of status Pin
Richard Deeming12-Feb-18 9:49
mveRichard Deeming12-Feb-18 9:49 
GeneralRe: change of status Pin
Member 1363217112-Feb-18 20:19
Member 1363217112-Feb-18 20:19 
GeneralRe: change of status Pin
Richard Deeming12-Feb-18 23:31
mveRichard Deeming12-Feb-18 23:31 
QuestionHow to manage dinamically generated user controls? Pin
alin111-Feb-18 14:12
alin111-Feb-18 14:12 
AnswerRe: How to manage dinamically generated user controls? Pin
Dave Kreskowiak11-Feb-18 18:29
mveDave Kreskowiak11-Feb-18 18:29 
AnswerRe: How to manage dinamically generated user controls? Pin
OriginalGriff11-Feb-18 21:15
mveOriginalGriff11-Feb-18 21:15 
GeneralRe: How to manage dinamically generated user controls? Pin
BillWoodruff11-Feb-18 23:52
professionalBillWoodruff11-Feb-18 23:52 

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.