I have 2 forms. 1 is the main form, which grabs some files, concatenates them together, then runs a seperate method to compress them using YUI Compressor.
The second form, is simply a ProgressBar form, that I fire up using .ShowDialog in the main routine
What I am trying to do is make the progress bar show progress during the compression process (because it takes a little bit),
but I don't seem to be doing it correctly, as all that shows it the blank progress bar.
default values of the control are Minimum =0 and Maximum = 100
Here's the code for the compressor sub:
Private Sub CompressTheFile(ByVal _TheFilePath As String)
Dim _Progress As New Progress()
Using _p As New Process
.StartInfo.FileName = "cmd.exe"
.StartInfo.Arguments = "/C java -jar " & My.Application.Info.DirectoryPath & "\yuicompressor-2.4.6.jar " & _TheFilePath & " -o " & _TheFilePath
.StartInfo.RedirectStandardOutput = True
.StartInfo.UseShellExecute = False
.StartInfo.CreateNoWindow = True
For i = 0 To 10
_Progress.ProgressBar.Value += 1
How can I make this work?