Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Yet Another Visual Basic 2008 question?

Ok so I have a VB Application that I wrote to install programs from a USB stick. It is made up of checkboxs and a single button that polls all the checkboxs states when I want to install a specific program.

Problem is I check the boxs that I want to install and click the button and all the programs try to start at once. Is there a code that I can put between each checkbox state to make the next one wait until the previous is completed. Here is an example of button my code now.

If CheckBox10.Checked = "true" Then Process.Start("****\*****.exe")

If CheckBox11.Checked = "true" Then Process.Start("****\****.exe")

Thank You.

2 Answers

Relevance
  • 9 years ago
    Favorite Answer

    You need to "manually" launch the program with Windows API and use a process poll to have your application wait for it to finish before continuing. An example can be found here:

    http://www.cpearson.com/excel/ShellAndWait.aspx

  • 5 years ago

    First you must be taught programming. (studying a language is not studying programming, it is studying one instrument to do programming in.) Then you must be taught item orientated programming. THEN you begin to be taught languages (you probably did it backwards).

Still have questions? Get your answers by asking now.