Hi, I just want to migrate an existing VB5 Project to VB.Net. I'm using the Microsoft Visual Basic Express Edition 2005 (beta) which transfered my code in .NET syntax. That has worked - but the application has lost my menu. My question now is how to transfer the following code :
Begin VB.Menu MenuFile
Caption = "File"
Begin VB.Menu MenuOpen
Caption = "Open"
End
Begin VB.Menu MenuSaveAs
Caption = "Save as"
End
Begin VB.Menu MenuExit
Caption = "Exit"
End
End
Begin VB.Menu MenuReturn
Caption = "Return"
End
Begin VB.Menu MenuRefresh
Caption = "Refresh"
End
Begin VB.Menu MenuAuto
Caption = "Auto mode"
End
..so that this works:
Form1.MenuReturn.Visible = False
Private Sub MenuOpen_Click()
Dim dlgCommonDialog As Object
Dim FileAfter As Object
Dim FileBefore As Object
Dim lenlin As Integer
...
Sounds very easy, but I counld't find any advice.
Hope someone can help me.
Thanks a lot
Begin VB.Menu MenuFile
Caption = "File"
Begin VB.Menu MenuOpen
Caption = "Open"
End
Begin VB.Menu MenuSaveAs
Caption = "Save as"
End
Begin VB.Menu MenuExit
Caption = "Exit"
End
End
Begin VB.Menu MenuReturn
Caption = "Return"
End
Begin VB.Menu MenuRefresh
Caption = "Refresh"
End
Begin VB.Menu MenuAuto
Caption = "Auto mode"
End
..so that this works:
Form1.MenuReturn.Visible = False
Private Sub MenuOpen_Click()
Dim dlgCommonDialog As Object
Dim FileAfter As Object
Dim FileBefore As Object
Dim lenlin As Integer
...
Sounds very easy, but I counld't find any advice.
Hope someone can help me.
Thanks a lot