Form cannot reopen when I choose it from Menu
I have created a menu & submenu and I open a form (PRMain) ONLY the first I choose it. If I close it and reopen it doesn't open again. Any Idea?
Here is the Code:
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If pVal.BeforeAction = False Then
Select Case pVal.MenuUID
If (pVal.MenuUID = "SM_VID_F1") And (pVal.BeforeAction = False) Then
Dim f As SAPbouiCOM.Form
f = SBO_Application.Forms.Item("PRMain")
Catch ex As Exception
Thanks in advance.