but really i don't know if this was right or not

Code:
Dim drugi As Integer = TextBox2.Text
if it was right then the code will work fine.