You need to convert your textbox's text to Int32 or to Byte, You choose, But keep in mind that if you do so, You need to add the exceptions handlers in case people are stupid enough to enter non-number values, Or it will crash your proggie,
In .Net C++, Easy, Convert::ToInt32(WhateverBox->Text),
Or, Go for the option of the Masked Textbox, And configure it to only accept numbers, But this is a little more complicated, And I still don't know how to do so in VBFaggy.
So, If you need help, Feel free to ask, As If you want to port it to C++, But don't ask me for detailled info in VB Methods,
Hope this helped,
Mely