You should go trough the chararray (string) with a loop and everytime when you encounter a "space" convert the previous chars to int and store them in an int-array. Something like this perhaps:
char Buffer; //max 10 digits
int i = 0;
int k = 0;
for (iCount = 0; mytext[iCount] != '\0'; iCount++)
if (mytext[iCount] != ' ')
Buffer[i] = mytext[iCount];
Buffer[i] = '\0';
Ouput[k] = atoi(Buffer);
i = 0;
I haven't tested this because my compiler won't start... But what I'm trying to do is: Go trough the string with a loop until I encouter the 'end of string char ( \0 ). Store the value of the element in a buffer unless it's a space. If it's a space, terminate the string, convert the buffer to an int and store it in an int-array (output). Then update all counters and continue.
I hope you get the basic idea. There are probably more direct ways to solve your problem, but I'm not yet back to my logic self...
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 ...