Click here to Skip to main content
15,891,253 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to Reslove Error? Pin
Dave Kreskowiak25-May-11 6:13
mveDave Kreskowiak25-May-11 6:13 
GeneralRe: How to Reslove Error? Pin
Eddy Vluggen25-May-11 11:41
professionalEddy Vluggen25-May-11 11:41 
QuestionProblem deleting a file (being used by another process) Pin
Central_IT25-May-11 1:55
Central_IT25-May-11 1:55 
AnswerRe: Problem deleting a file (being used by another process) Pin
Dave Kreskowiak25-May-11 3:02
mveDave Kreskowiak25-May-11 3:02 
AnswerRe: Problem deleting a file (being used by another process) Pin
Luc Pattyn25-May-11 3:13
sitebuilderLuc Pattyn25-May-11 3:13 
GeneralRe: Problem deleting a file (being used by another process) Pin
Nagy Vilmos26-May-11 0:15
professionalNagy Vilmos26-May-11 0:15 
AnswerRe: Problem deleting a file (being used by another process) Pin
Luc Pattyn26-May-11 0:22
sitebuilderLuc Pattyn26-May-11 0:22 
QuestionVB.NET Progress status while run a EXE file Pin
Andraw Tang24-May-11 4:26
Andraw Tang24-May-11 4:26 
Hi,

I have a project created using vb.net 2005. I need to collect data and generate a input file for a EXE file which will take 2 min to execute the exe file.

I also create a form with progressbar and Stop button, since I cannot get status of the EXE file, I just set the value of the progressbar from 1 ~ 100 then repeat. codes as the following


Dim p As New System.Diagnostics.Process()

p.StartInfo.FileName = Application.StartupPath & "\" & sAppPath
p.StartInfo.Arguments = fileName

'Do not use the system shell to start the program this is so we can hide the command dos window
p.StartInfo.UseShellExecute = False
p.StartInfo.WorkingDirectory = strOutputFilePath
' Show no dos window if false
p.StartInfo.CreateNoWindow = True
p.StartInfo.RedirectStandardOutput = True

Dim progBarFrm As New FormProgressBar
progBarFrm.Show()

p.Start

''''''''''''''

But when I run the above code, the progressbar value doesn't change. But if I comment out p.Start line, the progressbar works fine.

How can I show the progressbar while the process is running, if you have some sample, that's best.

Thanks!
AnswerRe: VB.NET Progress status while run a EXE file Pin
Dave Kreskowiak24-May-11 4:31
mveDave Kreskowiak24-May-11 4:31 
AnswerRe: VB.NET Progress status while run a EXE file Pin
Luc Pattyn24-May-11 4:37
sitebuilderLuc Pattyn24-May-11 4:37 
GeneralRe: VB.NET Progress status while run a EXE file Pin
Andraw Tang24-May-11 5:10
Andraw Tang24-May-11 5:10 
GeneralRe: VB.NET Progress status while run a EXE file Pin
Andraw Tang24-May-11 6:52
Andraw Tang24-May-11 6:52 
AnswerRe: VB.NET Progress status while run a EXE file Pin
Luc Pattyn24-May-11 7:05
sitebuilderLuc Pattyn24-May-11 7:05 
GeneralRe: VB.NET Progress status while run a EXE file Pin
Andraw Tang24-May-11 7:24
Andraw Tang24-May-11 7:24 
Answerthere probably is a mistake somewhere Pin
Luc Pattyn24-May-11 7:42
sitebuilderLuc Pattyn24-May-11 7:42 
GeneralRe: there probably is a mistake somewhere [modified] Pin
Andraw Tang24-May-11 8:13
Andraw Tang24-May-11 8:13 
GeneralRe: there probably is a mistake somewhere Pin
Luc Pattyn24-May-11 8:38
sitebuilderLuc Pattyn24-May-11 8:38 
GeneralRe: there probably is a mistake somewhere Pin
Andraw Tang24-May-11 9:01
Andraw Tang24-May-11 9:01 
GeneralRe: there probably is a mistake somewhere Pin
Dave Kreskowiak24-May-11 8:41
mveDave Kreskowiak24-May-11 8:41 
GeneralRe: there probably is a mistake somewhere Pin
Andraw Tang24-May-11 9:04
Andraw Tang24-May-11 9:04 
GeneralRe: there probably is a mistake somewhere Pin
Andraw Tang24-May-11 8:45
Andraw Tang24-May-11 8:45 
GeneralRe: there probably is a mistake somewhere Pin
Dave Kreskowiak24-May-11 8:51
mveDave Kreskowiak24-May-11 8:51 
GeneralRe: there probably is a mistake somewhere Pin
Andraw Tang24-May-11 9:27
Andraw Tang24-May-11 9:27 
GeneralRe: there probably is a mistake somewhere Pin
Dave Kreskowiak24-May-11 9:49
mveDave Kreskowiak24-May-11 9:49 
GeneralRe: there probably is a mistake somewhere Pin
Andraw Tang24-May-11 9:41
Andraw Tang24-May-11 9:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.