loose

VB.NET: How to maintain main form control during loops in other sub?

偶尔善良 提交于 2019-12-13 00:49:11
问题 I have a program with only one form. By pressing a button it starts a ffmpeg conversion. In the main form, in textboxes, ffmpeg stats are outputted. This is possible by taking StandardError output from ffmpeg. Public Sub Console() Dim Process As New Process Process.StartInfo.UseShellExecute = False Process.StartInfo.RedirectStandardError = True Process.StartInfo.RedirectStandardOutput = True Process.StartInfo.FileName = current_ffmpeg_path Process.StartInfo.Arguments = input_params Process