I am trying to diable the posting date edit box on the form load event for the AR Sales Order. This is my code written in VB.Net. Using SBO 2004A. I did put a debug and for some reason the active form is still the main menu and not the sales order.
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If pVal.FormType <> 0 Then
Select Case pVal.EventType
Dim oForm As SAPbouiCOM.Form
sBO_Application.Forms.ActiveForm.Items.Item(10).Enabled = False