Apart from it you can initiate a char array and then get the input through simple scanf() function.
Scanf can look simple, but it actually does a lot of work under the hood which obviously will slow down your code. Also, it can cause lots of problems if you don't know exactly how it is matching input. It seems like a good idea at first but it is generally regarded as bad coding practice in most cases.
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 ...