having all relevant code would be nice. i.e. variable declarations of post an in, and any libraries you may be using. As for the function, is it hand coded or out of a library? If it's hand coded, we'll need that as well. If it's out of a library, then it's being used incorrectly. The "str" in strcpy() implies string like this was designed for use on arrays of chars not ints. While it could be used for arrays of anything, it'll just end up really confusing if you try to use it for anything other than strings or arrays of chars.
strcpy() does not work with single characters -- it works with entire null-terminated character arrays. If you want to copy just a single character than simply use the = assignment operator. post[j] = in[x];
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 ...