Forget IDE generated code, try using only code. Read and learn to use the controls only code, is the healthiest solution.