I'm beginner and I have small problem. I need check if it is not empty die combobox. Now when I click button and the Combobox give an null error
"An unhandled exception of type 'System.NullReferenceException' occurred in WindowsFormsApplication4.exe
Additional information: Object reference not set to an instance of an object.
 private void Wykonaj_Click(object sender, EventArgs e)
        {           
        if (Combobox1.SelectedIndex.ToString() != null)
        {
            if (Combobox.SelectedItem.ToString() != "Audi")
            {
                wersja= "110";
            }
            else
            {
                wersja = "101";
            }
        }
    }
 
     
     
     
     
    