how to transfer textbox fro string to integer vb.net

C
how to transfer textbox from string to integer vb.net
Source

Also in C: