[Microsoft.VisualBasic.Interaction]::InputBox($msg, $title) RRS feed

  • Question

  • Im using the following interaction..... How can I know when the user either click the ok or cancel button? 

    michael john ocasio

    Friday, August 26, 2016 1:40 PM


  • If the user clicks the "cancel" button (or "Escape"), InputBox returns an empty string. The function does not use the constants vbOK and vbCancel like the MsgBox function does.

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    • Marked as answer by mjocasio23 Friday, August 26, 2016 2:09 PM
    Friday, August 26, 2016 1:57 PM