Min = Convert.ToInt32(cbMin.SelectedItem);
Here’s my issue, using that line to convert from the combobox to the integer variable. Right now, if i select “00” or “05” from my drop down the value only comes out as “0” or “5” It only seems to happen when a number STARTS with a “0”
Am i missing something?
PS: By the way, when I setup the combobox i just used the properties section on the side and filled out the collection. Just wanted to be sure that i threw that out there.
dont convert value to integer if you want leading zero make use of string
try this out soltuon will work for you
final code is
string s = (Convert.ToInt32(cbMin.SelectedItem)).ToString(“00”)
EDIT
if you alredy assinged valeu with 0 than you just need to write