Designer Gen Code Section.

I have one XX.VB file created in .NET 1.1

I dragged and drop it in Vb.NET Express

Now how can i force Vb.NET Express to create and copy all "Windows Form Designer generated code" of .NET 1.1 into XX.Designer.vb .

If not possible can i do it manually , how




Answer this question

Designer Gen Code Section.

  • Chimme2

    hi,

    the keyword here is Partial which is new in .net 2.0 instead of writing 2 classes it write one class in two files

    so instead of declareing class like this

    //form1.vb

    Class Form1
    Inherits System.Windows.Forms.Form

    End Class

    it split it into 2 files each class has the exact same name but one of them will starts with the word partial usualy the designer part of the class you will find in it the inhertiance also

    will be saved as Form1.VB

    Class Form1

    End Class

    will be saved as Form1.Designer.VB

    Partial Class Form1
    Inherits System.Windows.Forms.Form

    End Class

    any method wasn't created by you put it in the designer part

    hope this helps



  • Designer Gen Code Section.