Need numericUpDown to contain Int

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a numericUpDown control to contain a Int variable. Is there a way to
do this?
 
I assume you are doing Windows form applications? The Value property
returns type decimal. Just declare an integer variable and convert between
Decimal and Int32 using System.Convert.

If you are doing Web forms, there are no up/down controls shipped with the
product, but if you are pretty handy, it's not too tough to write one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top