Paul Buys

Paul Buys

  • NA
  • 1
  • 733

Checking text in a multiline textbox

Apr 30 2015 5:06 AM
Hiya,
 
I'm trying t write a program that will help me to memorize code. Kind of like a flash card game that i can play everyday fr a few minutes to help me learn prgramming.
 
a question will pop asking something like, "Howto declare a new string array", and in the text box below I wuld need to type string[] arrayName = new string[10]; ect...
 
The problem I am facing is when it comes to multiline answers, like how to create a method -
 
private void methodName()
{
 
this answer wuld require a multiline text box that would need to be checked according to an aswer in an array, so can anyone help me with how to compare text in a multiline textbox?
 
The single line textBox code looks like this;
 
 if(textBox1.text == answerArray[indexOfArray])
{
          doSomeCode;
 
Regards
Paul 
 

Answers (1)