I have the same user interface code that runs on my XP English computer and on a Japanese XP computer. For some reason, the behavior between the two machines is different:
On a Japanese computer, the OnResize event is fired during an InitializeComponent call (I think from the ResumeLayout function). On an English car this is not so.
I have an OnResize override method that changes the values โโof my personal variables that I defined. Since the component was not fully loaded (Ctor is still running), these variables are zero and I get an exception.
I can fix the code by checking if the variable is null or not, but I would like to understand why it is called in the first place and why this only happens on this machine.
During my search over the network, I found the same problem as someone else, but without a solution ( http://social.msdn.microsoft.com/Forums/en/winforms/thread/95aefae4-45d8-4ac5-a8f2 -6e2142dfb631 ).
source
share