Click here to Skip to main content
15,749,072 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Amount From Month From Year To Month To year
textbox combobox1 combobox2 combobox3 combobox4

if i have not select all four combobox then textbox value show automatically 0 on submit button

1 solution

in your submit button click event check the combox selected index or selected item value or Text properties. if all 4 values not having any value you can consider textbox value as zero.
the field you going to test is depend on how you binding each combo box, is there any default value etc..
check below documentations
ComboBox.SelectedIndex Property[^]
ComboBox.SelectedItem Property[^]
ListControl.SelectedValue Property[^]
ListControl.SelectedValue Property[^]
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