Click here to Skip to main content
16,004,686 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have two combobox which is having month jan to dec. i want to calculate selected months from first combobox to another combobox
Posted
Comments
Sergey Alexandrovich Kryukov 11-Mar-14 3:38am    
ComboBox? Which one? Full type name, please. And what's the problem? What prevents you from calculating it?
—SA

1 solution

Dim FM As Integer = ComboBox1.SelectedIndex + 1
Dim SM As Integer = ComboBox2.SelectedIndex + 1
Dim Gap As Integer = CInt(Math.Abs(SM - FM))
MsgBox(Gap.ToString)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900