What you have to do is right click on your project file and select add new item. Select the class object and name it whatever you want and click Add. Visual Studio may tell you that it is a good idea to put classes in the App_Code folder. Just click yes and go on your marry way. You should now have a class that looks like the snippet below
Public Class CustomWebMenu
End Class
Typically I would add some import statements for System.Web.UI.Webcontrols. Now you have to add the Inherits statement to let the class use the existing menu controls features. so your class would look like this
Imports System.Web.UI.WebControls
Public Class Class1
Inherits Menu
End Class
Once you have added this you can add the render code in the previous post reference your new control and vola! I hope that helps.
Remeber to mark as Answer if someone's answer helped you.