I present the user a NumericUpDown control so he can specify the size of a texture. It is important that this texture is of power of two size (32, 64, 128...).
You're going to run into a problem in 2+ digit numbers. If I want to put 32 and you see the 3 as I am typing, then your program would just tell me I'm wrong. Validate it when you submit your data.