Event exit
hey i would like to know how can i Exit an event in C# like the selected index event in combobox ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 12, 2014, 1:04 PM EST
You can also 'unhook' a handler from the event so that it is no longer called using the -= operator like this:
comboBox1.SelectedIndexChanged -= comboBox1_SelectedIndexChanged;