user3357400
user3357400

Reputation: 407

How to check if slideshow is running

I want to check if slideshow is running. Here is my code:

private void checkSlideShow()
{
    if (Globals.ThisAddIn.Application.ActivePresentation.SlideShowWindow.Active == msoTrue)
    {
    //slideshow is running
    }
}

I get this error: The name 'msoTrue' does not exist in the current context

What is msoTrue and what I need to write here ... == ?

Upvotes: 0

Views: 68

Answers (1)

Faisal
Faisal

Reputation: 623

Write MsoTriState.msoTrue from http://msdn.microsoft.com/EN-US/library/ms251168.

Upvotes: 1

Related Questions