• 0

[C#] ComboBox Value/Text over 3


Question

Hi Guys,

I'm trying to act on a combobox's value being over 3.. i'm not sure how thought, i've tried a few different things and searching the internet but can't find anything on this.

If anyone could help, that'd be great.

Thanks,

Michael

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Assuming you mean the value of the text that is in the combobox's selected item then you would need to convert the string to an integer

int integerString = Convert.ToInt32(<combobox string>)

Then see if that is greater than 3.

Hope that helps.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.