The fragment "New frmMain" suggests this is a type. How can it possibly have "references"? You seemingly have no idea of some basics of programming. The code fragments you show looks like gibberish (
http://en.wikipedia.org/wiki/Gibberish[
^]).
Do the following:
1) Create a brand-new VB.NET program with Visual Studio from a template. Add one or too controls to the main form using the Toolbox. It will create you a fully working skeleton of the application. Examine its structure and understand how it works. You will need to create something very similar in your port.
2) Get familiar with basics of .NET programming and VB.NET. Learn types, instances, static and instance members, properties, basics of classes inheritance and virtual methods/properties, late binding. Anything else. Yes, but what I already listed is enough to start. Make sure you thoroughly understand it. You should also understand that the Designer only helps you to write the code (or confuse someone in doing so, it depends on the skills and the point of view :-)); all the artifacts of programming are cast in the source code which is build without any participation of the Designer.
—SA