C++/CLI designer produces ugly inline code, because the same program works also for C# and VB .NET. There is also Form1.cpp file, which contains only:
#include "Form1.h"

You can move implementation to .cpp file according to general C++ rules.