Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: the problem write to file is still continuing:( Pin
BoneSoft18-Apr-08 5:24
BoneSoft18-Apr-08 5:24 
GeneralDataTable remains empty on button finish click Pin
vanessa12317-Apr-08 8:21
vanessa12317-Apr-08 8:21 
QuestionSpelling Test Pin
dennycrane17-Apr-08 7:37
dennycrane17-Apr-08 7:37 
GeneralRe: Spelling Test Pin
Edmundisme17-Apr-08 7:54
Edmundisme17-Apr-08 7:54 
GeneralRe: Spelling Test Pin
led mike17-Apr-08 8:00
led mike17-Apr-08 8:00 
GeneralRe: Spelling Test Pin
dennycrane17-Apr-08 8:00
dennycrane17-Apr-08 8:00 
GeneralRe: Spelling Test Pin
ChrisKo17-Apr-08 8:17
ChrisKo17-Apr-08 8:17 
GeneralRe: Spelling Test [modified] Pin
Edmundisme17-Apr-08 9:16
Edmundisme17-Apr-08 9:16 
why would you do a char by char comparison instead of just comparing the strings?
I misunderstood... I didn't realize this was more than a "right" or "wrong" problem... Blush | :O


<br />
if (string.Equals(sUserAnswer, sCorrectAnswer, StringComparison.OrdinalIgnoreCase))<br />
{<br />
   // code for a right answer<br />
}<br />
else<br />
{<br />
   // code for a wrong answer<br />
}<br />


I suggest that you create an XML file that specifies the word to spell along with the location of the media file that corresponds to the spoken word. Something like:

<words>
<word media="C:\Words\Hello.mp3">Hello</word>
<word media="C:\Words\Hyperbole.mp3">Hyperbole</word>
...
</words>

The application should then allow you to load the XML file that corresponds to the test you want to take.

modified on Thursday, April 17, 2008 4:37 PM

GeneralRe: Spelling Test [modified] Pin
dennycrane17-Apr-08 9:37
dennycrane17-Apr-08 9:37 
GeneralRe: Spelling Test Pin
Edmundisme17-Apr-08 9:55
Edmundisme17-Apr-08 9:55 
GeneralRe: Spelling Test Pin
dennycrane17-Apr-08 10:19
dennycrane17-Apr-08 10:19 
GeneralRe: Spelling Test Pin
Edmundisme17-Apr-08 10:29
Edmundisme17-Apr-08 10:29 
GeneralRe: Spelling Test Pin
User 665817-Apr-08 10:32
User 665817-Apr-08 10:32 
GeneralRe: Spelling Test Pin
Luc Pattyn17-Apr-08 10:55
sitebuilderLuc Pattyn17-Apr-08 10:55 
QuestionEXE wont load Pin
Ashley Staggs17-Apr-08 7:36
Ashley Staggs17-Apr-08 7:36 
GeneralRe: EXE wont load Pin
Edmundisme17-Apr-08 7:51
Edmundisme17-Apr-08 7:51 
GeneralRe: EXE wont load Pin
Ashley Staggs17-Apr-08 10:07
Ashley Staggs17-Apr-08 10:07 
GeneralRe: EXE wont load Pin
Edmundisme17-Apr-08 10:18
Edmundisme17-Apr-08 10:18 
GeneralRe: EXE wont load Pin
Ashley Staggs17-Apr-08 10:23
Ashley Staggs17-Apr-08 10:23 
GeneralRe: EXE wont load Pin
Edmundisme17-Apr-08 10:36
Edmundisme17-Apr-08 10:36 
GeneralRe: EXE wont load Pin
Luc Pattyn17-Apr-08 11:01
sitebuilderLuc Pattyn17-Apr-08 11:01 
GeneralRe: EXE wont load Pin
Ashley Staggs18-Apr-08 5:34
Ashley Staggs18-Apr-08 5:34 
GeneralRe: EXE wont load Pin
Luc Pattyn18-Apr-08 6:20
sitebuilderLuc Pattyn18-Apr-08 6:20 
QuestionC#,ports Pin
mousavi12817-Apr-08 6:47
mousavi12817-Apr-08 6:47 
GeneralRe: C#,ports Pin
Luc Pattyn17-Apr-08 11:04
sitebuilderLuc Pattyn17-Apr-08 11:04 

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.