convert from string to int

This is a discussion on convert from string to int within the C# Programming forums, part of the General Programming Boards category; I want to get from a String an Int.
I've tried something like this:
Code:
String s=textBox1.Text;
int i = ...