none
Unable to set Presenter View windowstate to normal RRS feed

  • Question

  • Hello,

    I attempt to set the Presenter View window to normal state. But it stays maximized. I'm able to set the main powerpoint application window to normal. Is there a workaround or Am I missing something.

    foreach(PPT.DocumentWindow window in pptApp.Windows)
                {
                    if(window.Caption.Contains("Presenter View"))
                    {
                        window.WindowState = PPT.PpWindowState.ppWindowNormal;
                    }
                }

    Thank you,

    Finis

    Saturday, March 12, 2016 5:26 AM

Answers

  • Got it, this works....

          
      [DllImport("user32.dll")]
            static extern bool ShowWindow(IntPtr hwnd, int nCmdShow);
    
    
    
    
     foreach(PPT.DocumentWindow window in pptApp.Windows)
                {
                    if(window.Caption.Contains("Presenter View"))
                    {
                        IntPtr pvHWND = (IntPtr) window.HWND;
                        ShowWindow(pvHWND, 1);
    
                     }
    
                }
    

    • Marked as answer by Finis_J Sunday, March 13, 2016 12:15 AM
    Sunday, March 13, 2016 12:14 AM