pow is overloaded for multiple types, and all of them can be converted to from int. An easy way to fix the problem is to force the second argument to double:
int square = pow(integer,2.0);
ok thank you - at first it was giving me another error but now it is working fine. Do you know if there is a way to combine this using only one function and one while loop? I tried doing it but it was integrating the squares with the integers and it needs to print 1 through 10 and then the squares, 1 through 100.
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 ...