Visualize each number and each operator in the input string to be a token. Then, if each token is separated from the next by a space you can use >> to get each token into separate strings. If ()s are allowed, then typically they aren't separated from the numerical input by a space so you might have to account for that.
Once you have a tokenization protocol in place then one popular option would be to devise an infix/postfix conversion protocol and then use the reverse polish notation to do the actual calculations. To get more ideas you can search the board using keyphrases like RPN calculator, infix/postfix expressions, etc. to see prior discussions regarding these topics or you can go online and look up RPN calculator with your favorite search engine. You could even try working it out yourself and post questions you have along the way.
There are several ways you can convert the strings (tokens) representing numbers to numerical variable so you do the desired mathematical operations with them. They include stringstreams, sprintf(), functions similar to atoi() and subtracting '0' from each char representing a digit and then multiplying that by the appropriate power of 10 and adding the individual values together. As you can imagine some of these are prefered over others, but all of these are valid approaches.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...