Search code examples
vb.netvb6vb6-migration

Open VB6 form design properties in a text file just like we have .Designer.vb file for VB.NET


I am working on a particular project where the VB6 forms need to be ported to VB.NET forms automatically. So to do that i need VB6 windows form design properties file. Is there any way to get the complete design properties of the form in the text file where it can be read. I have tried opening the form (i.e .frm extension) using notepad but cant get all the properties,It displays only few properties for a particular element.


Solution

  • Well, you could open the .frm file in your explorer with an Text Editor like Notepad++.

    In the top you will see the Designer code for this Form.

    But you will see, that the code is not compatible with VB.NET.

    Here an example for a VB6 Button:

    Begin VB.CommandButton btnSaveFilter 
          Height          =   330
          HelpContextID   =   2283012
          Left            =   630
          MaskColor       =   &H00FF00FF&
          Picture         =   "frmMain.frx":08CC
          Style           =   1  
          TabIndex        =   31
          Top             =   6030
          UseMaskColor    =   -1  
          Width           =   330
    End