how to make textbox c# only integer code example Example: how to get integer value from textbox in c# int value = int. Parse(textBox1. Text);