Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiple clicks on one button scrolls through selection choices Pin
BillWoodruff10-May-18 10:56
professionalBillWoodruff10-May-18 10:56 
AnswerRe: Multiple clicks on one button scrolls through selection choices Pin
Pete O'Hanlon10-May-18 21:45
mvePete O'Hanlon10-May-18 21:45 
Questionc# while loop Pin
swathiii8-May-18 23:04
swathiii8-May-18 23:04 
AnswerRe: c# while loop Pin
OriginalGriff8-May-18 23:37
mveOriginalGriff8-May-18 23:37 
AnswerRe: c# while loop Pin
Pete O'Hanlon9-May-18 1:32
mvePete O'Hanlon9-May-18 1:32 
AnswerRe: c# while loop Pin
Luc Pattyn9-May-18 22:53
sitebuilderLuc Pattyn9-May-18 22:53 
Questionhow can i get the splitted values in a textbox from seperate line in c# using text file Pin
Mohamed Fahad M8-May-18 3:28
Mohamed Fahad M8-May-18 3:28 
AnswerRe: how can i get the splitted values in a textbox from seperate line in c# using text file Pin
OriginalGriff8-May-18 4:14
mveOriginalGriff8-May-18 4:14 
I don't think you can, if I read what you are trying right.

You seem to be looping round for each line in the file, splitting it on commas, and trying to display each line in a textbox: but that won't work, because each time you assign a new value to the Text property, it throws away what was in the textbox before:
stage.Text=subarray[1].ToString();
stgender.Text= subarray[2].ToString(); 
YOu could use a multiline textbox, and append each result to a new line, but that's a bit of a cack-handed approach. Have you considered using a DataGridView instead?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

AnswerRe: how can i get the splitted values in a textbox from seperate line in c# using text file Pin
Eddy Vluggen8-May-18 5:51
professionalEddy Vluggen8-May-18 5:51 
GeneralRe: how can I ... Pin
Luc Pattyn8-May-18 7:16
sitebuilderLuc Pattyn8-May-18 7:16 
GeneralRe: how can I ... Pin
Eddy Vluggen8-May-18 7:43
professionalEddy Vluggen8-May-18 7:43 
AnswerRe: how can i get the splitted values in a textbox from seperate line in c# using text file Pin
BillWoodruff12-May-18 10:45
professionalBillWoodruff12-May-18 10:45 
Questionconversion from Uint32 to float Pin
sp love8-May-18 2:16
sp love8-May-18 2:16 
AnswerRe: conversion from Uint32 to float Pin
Luc Pattyn8-May-18 2:56
sitebuilderLuc Pattyn8-May-18 2:56 
QuestionWebServices Pin
Member 22364197-May-18 23:17
Member 22364197-May-18 23:17 
AnswerRe: WebServices Pin
Eddy Vluggen7-May-18 23:38
professionalEddy Vluggen7-May-18 23:38 
AnswerRe: WebServices Pin
OriginalGriff7-May-18 23:43
mveOriginalGriff7-May-18 23:43 
GeneralRe: WebServices Pin
Member 22364198-May-18 19:35
Member 22364198-May-18 19:35 
GeneralRe: WebServices Pin
Mycroft Holmes8-May-18 20:31
professionalMycroft Holmes8-May-18 20:31 
Questionc# Why can I not get this to work? Pin
tomas0007-May-18 1:21
tomas0007-May-18 1:21 
AnswerRe: c# Why can I not get this to work? Pin
Luc Pattyn7-May-18 2:42
sitebuilderLuc Pattyn7-May-18 2:42 
AnswerRe: c# Why can I not get this to work? Pin
User 74293389-May-18 23:24
professionalUser 74293389-May-18 23:24 
Questionnow how can i get the splitted values in a textbox from seperate line in c# using text file Pin
Mohamed Fahad M6-May-18 4:14
Mohamed Fahad M6-May-18 4:14 
AnswerRe: now how can i get the splitted values in a textbox from seperate line in c# using text file Pin
Gerry Schmitz6-May-18 5:02
mveGerry Schmitz6-May-18 5:02 
AnswerRe: now how can i get the splitted values in a textbox from seperate line in c# using text file Pin
OriginalGriff6-May-18 6:47
mveOriginalGriff6-May-18 6:47 

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.