Take a look at /CMSModules/CustomTables/CustomTable_New.aspcx and .cs. There is a NewClassWizard control on that page that you should be able to use or get some from code from. Here is the location of the control /CMSModules/AdminControls/Controls/Class/NewClassWizard.ascx
You can also create a page in your module that references the already created page to create a custom table too. You can find that functionality in /CMSModules/CustomTables/CustomTable_List.aspx.cs lines 10, 11 and 12.