C# / Mxs custom controls : broken example from old Gamasutra article

I’ve been trying to get the example code in this old gamasutra article to work for me.

here is the c# code , which I think is buggy -it wont compile out of the box in VS 2010 express anyhow.
I left out their comments and put in comments on what looks odd to me


--edit: updated code below

I’m still kind of new to c# so I may be missing the obvious here. It looks to me like the initalizeComponent function, and some important button definitions, are just straight up missing.
Note that this custom control is meant to pair with a max script rollout that loads it as a dotNetAseembly and dotnet object. The missing buttons aren’t part of that either.

Did you set this up using the ‘UserControl’ project in VS 2010? The missing code and controls are in the designer UI; things like forms and buttons etc are created by the designer for you. Event Handlers are created in your .cs file when you edit the button in the designer, but there’s a ton of stuff in the code behind that you don’t do yourself.

I got ‘real’ programmer I work with to walk through my code in Visual Studio
turns out I had some syntax errors :sigh: