Skip to Content
author's profile photo Former Member
Former Member

Error with Application.Messagebox while Eventhandling

Hi,

i've got a problem with Application.Messagebox.

I'm loading a form from xml. after that i send a messagebox. If i click on the ok-button everything works fine.

but if i send a messagebox from the event handling (eg after button_click) the messagebox will be shown, but if i click 'ok' my application will be shut down.

changing the status bar by application.statusbar.settext works.

I hope you understand what my problem is.

Looking forward to your help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 31, 2005 at 08:20 AM

    Hi,

    I read somwhere to put this code at the top of the event handling routine... Anyway I don't use it in my code.

    Private Sub sboApplication_ItemEvent(ByVal FormUID As String, pVal As SAPbouiCOM.IItemEvent, BubbleEvent As Boolean)

    On Error GoTo ItemEventErrHandler

    <b>

    If pVal.FormType <> 0 Then 'Not a MsgBox Event

    'Process event here

    End If

    </b>

    Hope this helps

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.