textBox question

  • Thread starter Thread starter Justin Naidl
  • Start date Start date
J

Justin Naidl

I'm using C# and building a basic windows application, but I can't for the
life of me figure out how to get an integer/long value from a text box. I
have written a function which converts a string to an int/long but I feel
like there should be an easier way of doing this. Either via a built in
string to int conversion or just using the textBoxes.

Thanks for any help.

~Justin
 
And, remember that Textboxes, by their very nature, only hold string data.
Taking that data out and treating like anything but a string would
necessitate a cast.
 
Back
Top