title: Disable advancing to next slide on click or keypress
body: <p>In PowerPoint, how do I disable moving to next slide on click or keypress during slide show <strong>programmatically</strong>? </p>
  
  <p>I have found quite a few results in Google, but all of them simply ask me to uncheck that particular option in the Ribbon. I need a VSTO/VBA way of doing this. My slides contain hyperlinks that will handle navigation between slides. I do not want to have other ways of navigation.</p>
  
  <p>Also the following line didn't do the trick for me:</p>
  
  <pre><code>Pres.SlideShowSettings.AdvanceMode = PpSlideShowAdvanceMode.ppSlideShowManualAdvance;
  </code></pre>