I am making a program for school where the user has to choose a chapter to learn. when the user has choosen one i want to use a text file where all the words are in: for example
In the program you choose chapter 5 then the program has to open 5.txt and convert it into variables.
In the text file are to words on one line seperated by a comma. then in the program the first word has to come on a place and you have to fill in the translation in a textbox. then the program has to check it.
sorry for my bad english, it is because i am from the NL
rumanoid
0
Newbie Poster
Recommended Answers
Jump to PostLet me see if I have this.
- The user selects a file from a list
- The file contains pairs of words. The first is in one language, the second in another
- The program displays the first word and a textbox for the user to type the translation
- The program compares …
Jump to PostIt would make more sense (to me) to have the chapters in a combobox. Selecting a new chapter would automatically open the file. You said this was for school so I am assuming it is an assignment. We don't do other people's homework for them. However, we will give help …
Jump to PostIf you have a ComboBox named cbxChapters you can populate it as follows (assumes you have all of the chapters in one folder and the files are named Chapter-##.txt and myFolder is a string variable set to the name of the folder containing the files).
cbxChapters.Items.Clear() For …
Jump to PostFeel free to return if you get stuck.
All 14 Replies
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rumanoid
commented:
Thanks for helping
+0
rumanoid
0
Newbie Poster
rumanoid
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rumanoid
commented:
thanks for helping
+0
rumanoid
0
Newbie Poster
rumanoid
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rumanoid
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rumanoid
0
Newbie Poster
rumanoid
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rumanoid
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.