Anybody ever have the problem where you add a control, say...a button, and the line "Friend WithEvents Button1 as Button" gets written outside of the "windows form designer generated code" region and at the bottom of the class? But the rest of the code that gets written for said Button1 does get written in the "windows form designer generated code" area? Anyone have any ideas how to fix this problem? Quite frustrating I must say.