Hi -

newbie question here I have a vb.net application made that during it's form load it will run external applications to using the process.start. Everything works great except I never get the form to display with the progress bar as it processes each external application. It will install all the external apps that it runs no problems but form never displays. Is there a way I can have the form display first and then process the external apps?

A Snippet of my code:
Code:
 Dim computername AsString

computername = System.Net.Dns.GetHostName

Dim oFile As System.IO.File

Dim oWrite As System.IO.StreamWriter

' Start the Install

ListBox1.Items.Add("Loaded....")

ListBox1.Items.Add(" ")

 

' ProgressBar1.Value = 10

' Start my Package Installation Here

OnErrorResumeNext

Dim startpkg AsNew System.Diagnostics.Process

ListBox1.Items.Add("Processing Package: sample Files")

startpkg.StartInfo.FileName = "sample.exe"

startpkg.StartInfo.WindowStyle = ProcessWindowStyle.Hidden

startpkg.Start()

startpkg.WaitForExit()

startpkg.Close()

oWrite = oFile.CreateText("C:\log.log")

oWrite.WriteLine("Processed Sample Files")

oWrite.WriteLine("")

ProgressBar1.Value = 20
Any help is greatly appreciated, in the example above the code is in form load and it runs fine but I never see the form with the progress bar displayed. Thanks