I have property method in my window forms:
public int selectMonthIndex
{
get { return selectMonthIndex = =monthSelection.SelectedIndex; }
set
{
if (monthSelection.SelectedValue.ToString() == "February")
{
selectMonthIndex = 2;
}
}
}
After the selections and the OnSelectedIndexChange was triggered the user enters information and click save. the save function is suppose to check for the selected item or index in order to pick the right DB to save to but the index or item is always null.
Please how do I fix this ?