[Solved] Why my combobox is null? even though not beeing null [closed]


The code to set the value is actually executed in Form1‘s context only. Since you made it a static field without understanding what you are doing that initialization code does not get a chance to execute and code in Form2 happily sees the null value.

So says my psychic debugging about this ill-defined problem statement.

solved Why my combobox is null? even though not beeing null [closed]