Click here to Skip to main content
15,927,744 members
Home / Discussions / C#
   

C#

 
GeneralRe: CRM 3.0 SDK Problem Pin
hdv21221-Mar-08 21:37
hdv21221-Mar-08 21:37 
Questionhow to pass textbox value from one form to other form in window application +c# Pin
mrcsn21-Mar-08 18:33
mrcsn21-Mar-08 18:33 
AnswerRe: how to pass textbox value from one form to other form in window application +c# Pin
Steve Echols21-Mar-08 19:06
Steve Echols21-Mar-08 19:06 
AnswerRe: how to pass textbox value from one form to other form in window application +c# Pin
ashok_rc521-Mar-08 19:16
ashok_rc521-Mar-08 19:16 
GeneralRe: how to pass textbox value from one form to other form in window application +c# Pin
Christian Graus21-Mar-08 19:40
protectorChristian Graus21-Mar-08 19:40 
AnswerRe: how to pass textbox value from one form to other form in window application +c# Pin
Christian Graus21-Mar-08 19:44
protectorChristian Graus21-Mar-08 19:44 
AnswerRe: how to pass textbox value from one form to other form in window application +c# Pin
Ravenet21-Mar-08 22:27
Ravenet21-Mar-08 22:27 
QuestionReading txt file to textbox Pin
Casper Hansen21-Mar-08 17:50
Casper Hansen21-Mar-08 17:50 
Hello.

I am developing a program where I have some textboxes and forward and previous buttons.
I also have a txt file. I want to read from my txt file and then write to my textbox.

My txt file looks like this:
19 1 "Yeti" 30 900 0 105 110 37 0 150 37 2 17 4 6 400 2000 10 2 180 14 6 0 0 3 0 0<br />
20 1 "Elite Yeti" 36 1200 0 120 125 50 0 180 43 3 0 1 6 400 1400 10 2 180 14 6 0 1 4 1 1<br />
21 1 "Assassin" 26 800 0 95 100 33 0 130 33 2 0 1 7 400 2000 10 2 180 14 6 0 0 0 0 0<br />
22 1 "Ice Monster" 22 650 0 80 85 27 0 110 27 2 7 1 5 400 2000 10 2 170 14 6 0 0 3 0 0<br />
23 1 "Hommerd" 24 700 0 85 90 29 0 120 29 3 0 1 5 400 1600 10 2 170 14 6 0 0 3 0 0<br />
24 1 "Worm" 20 600 0 75 80 25 0 100 25 3 0 1 4 400 1600 10 2 160 14 6 0 0 2 0 0<br />
25 1 "Ice Queen" 52 4000 0 155 165 90 0 260 76 3 11 4 7 400 1400 50 2 180 14 3 0 4 5 4 4


I want it to read one line and then for example set Yeti and 19 into a textbox

When you push forward it reads elite yeti and 20

But I don't know how to do

I am assuming I need space as a separator and then use like var[3] where 3 is the third word.
A little like in mirc where you can write
$gettok(one two three, 32, 3) where it picks the 3 word with the separator space (32)

But when it gets to the code and not the idea im kinda stuck. Any ideas?

Im using Visual C# 2008 Express Edition
GeneralRe: Reading txt file to textbox Pin
Christian Graus21-Mar-08 19:41
protectorChristian Graus21-Mar-08 19:41 
GeneralRe: Reading txt file to textbox Pin
Casper Hansen22-Mar-08 14:17
Casper Hansen22-Mar-08 14:17 
AnswerRe: Reading txt file to textbox Pin
Casper Hansen5-Apr-08 1:44
Casper Hansen5-Apr-08 1:44 
GeneralCommercial use of C# Express Pin
Ian Uy21-Mar-08 17:22
Ian Uy21-Mar-08 17:22 
GeneralRe: Commercial use of C# Express Pin
PIEBALDconsult21-Mar-08 17:45
mvePIEBALDconsult21-Mar-08 17:45 
GeneralRe: Commercial use of C# Express Pin
Ian Uy21-Mar-08 17:53
Ian Uy21-Mar-08 17:53 
GeneralRe: Commercial use of C# Express Pin
Christian Graus21-Mar-08 19:45
protectorChristian Graus21-Mar-08 19:45 
GeneralRe: Commercial use of C# Express Pin
Paul Conrad22-Mar-08 5:32
professionalPaul Conrad22-Mar-08 5:32 
QuestionApplication server for Forms based solution ( not Web Based ) . Pin
unitecsoft21-Mar-08 13:32
unitecsoft21-Mar-08 13:32 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
Christian Graus21-Mar-08 13:50
protectorChristian Graus21-Mar-08 13:50 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
unitecsoft21-Mar-08 14:27
unitecsoft21-Mar-08 14:27 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
MNFlyer21-Mar-08 15:19
MNFlyer21-Mar-08 15:19 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
Luis Alonso Ramos21-Mar-08 21:59
Luis Alonso Ramos21-Mar-08 21:59 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
MNFlyer22-Mar-08 4:06
MNFlyer22-Mar-08 4:06 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
Luis Alonso Ramos22-Mar-08 8:43
Luis Alonso Ramos22-Mar-08 8:43 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
MNFlyer22-Mar-08 4:09
MNFlyer22-Mar-08 4:09 
GeneralRe: Application server for Forms based solution ( not Web Based ) . Pin
Luis Alonso Ramos21-Mar-08 22:02
Luis Alonso Ramos21-Mar-08 22:02 

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.