I am having an issue where the SelectedIndexChanged
event is not firing on my System.Windows.Forms.ComboBox
object when it should, but only on my computer. It works fine on everyone else's computer.
When I run GetType().assembly
on the object my computer shows .Net 4.0, but 2.0 on everyone else's.
How can I force the object to 2.0?
Here is the relevent assembly import:
[reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null