![]() ScanTime = DateTime.ParseExact(ScanTime, "HHmmss", Nothing).ToString("HH:mm:ss") ![]() ScanTime = strRecord.Substring(55, 6).TrimEnd ScanDate = DateTime.ParseExact(ScanDate, "yyyyMMdd", Nothing).ToString("MM/dd/yyyy") ScanDate = strRecord.Substring(47, 8).TrimEnd REEL_BC = strRecord.Substring(32, 15).TrimEnd SKID = strRecord.Substring(16, 16).TrimEnd If Count 0 Then intTicks = Math.Round((100 / Count), 1) The call to objApex.FileDownload in class cApex is where progress bar is to be updated from (actually in another function called from FileDownload). Error#: " & Err.Number & " : " & Err.Description) ![]() MessageBox.Show("No Data downloaded from Scanner. This is the code from button on frmShiping and the multithread procedure: Private Sub btnreadScanner_Click(sender As Object, e As EventArgs) Handles btnreadScanner.ClickÄim thrReadScanner As New (AddressOf ReadScanner) I can get the progress bar to update on the frmMain from the main UI thread ( frmShipping button). A secondary form ( frmShipping) has a button which initiates a second thread to do some COMM Port communications in a class ( cApex). The progress bar ( ToolStripProgressBar1) is on the main form ( frmMain), the MDI of the project. ![]() I am trying to update a progress bar with work done in a secondary thread. Usually I'm able to find the answer and make it work.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |