Skip to Content
0
Former Member
Aug 23, 2005 at 02:33 PM

Unable to diable a edit box on the form load event

14 Views

Hi,

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

Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD

Dim oForm As SAPbouiCOM.Form

sBO_Application.Forms.ActiveForm.Items.Item(10).Enabled = False

End Select

End If

Regards John