Error handler (Process.Start)

Discussion in 'Programming' started by Blayer98, Nov 29, 2014.

  1. Blayer98

    Blayer98 Active Member

    Hi guys!

    I'm making a Launcher in Visual Studio Express, and I'm trying to make an error handler for if the exe file specified in "Process.Start()" doesn't exist.

    I'm trying to get a msgbox appear, but I'm not sure how to get it appear if the file doesn't exist. Any help is appreciated! :3
  2. ddfczm

    ddfczm Administrator Staff Member Moderator

  3. Blayer98

    Blayer98 Active Member

    I get this error: System.ComponentModel.Win32Exception.
    By the way, the code for the button I'm setting it to is in .vb.

    EDIT: It works now! :D
    Last edited: Nov 29, 2014

Share This Page