take the value of a text box vb and store in a integer variable code example Example: how to assign a variable from a textbox in visual basic intVar1 = txtInput.Text