Skip to Content
avatar image
Former Member

Opening a UDOForm1.b1f Form within SBO_Application_MenuEvent

Hello Experts.

I have created a UDO using Business one Object Registration Wizard then Imported it inside Visual studio where i have added some logic to it . I have a menu CostingSheet that responds by opening a Form1.b1f that i have added just for testing purpose .But i don't know the corresponding method for opening UDOForm1.b1f


Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            BubbleEvent = True
               If (pVal.BeforeAction And pVal.MenuUID = "CostingSheet") Then
                Dim activeForm As UDOForm1
             activeForm = New UDOForm1
            activeForm.Show() 'only works  for  Form1.b1f  as
                End If
            Catch ex As System.Exception
                Application.SBO_Application.MessageBox(ex.ToString(), 1, "Ok", "", "")
            End Try
        End Sub
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers