Hello all
I've created a VERY simple form with a button on it. This is the code:
'Create the form:
frmVareAddOn = SBO_Application.Forms.Add("VareAddOnForm")
frmVareAddOn.Height = 599
frmVareAddOn.Left = 275
frmVareAddOn.Title = "My button-form"
frmVareAddOn.Top = 48
frmVareAddOn.Width = 473
'Create the button
oItem = frmVareAddOn.Items.Add("btnHello", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Height = 19
oItem.Left = 365
oItem.Top = 28
oItem.Width = 65
oButton = oItem.Specific
oButton.Caption = "Hello"
When I run the project, the form with the button is shown - but how can I show a MessageBox when the button is clicked?