I want to set the last selected item from a combobox as its default, meaning when I close this form and reopen it, the combobox shows and selects the last selected item again.
I have tried to save the SelectedIndex
as an INT and use it like this:
public Form1()
{
InitializeComponent();
combobox1.SelectedIndex = Number;
}
But still, combobox always selecting the first item when I reopen the form.