Hi All

Have not posted anything for ages, anyhow I have a program which chooses a powerpoint show and then runs it the code for running the show is:

Code:
Imports Microsoft.Office.Interop.PowerPoint

Private Sub show_pp()

        Appt = New Application

        Appt.Activate()
        Pppt = Appt.Presentations.Open(myPath & pp)
        Pppt.SlideShowSettings.Run()


        If instance = PpSlideShowState.ppSlideShowDone Then

            Me.BringToFront()


        End If
    End Sub
When I the show runs the VB form is sent to the back otherwise it stays on top of the PP, the problem is that I am unable to detect when the PP is completed and the form does not come to the front of the screen but stays in the task bar.

I have tried by using the 'instance' in the code but this does not do anything. I have looked at many posts in the forum about background worker, but I am at a loss as to what to do.

Your help would be appreciated

Badgersoft333