Click here to Skip to main content
15,886,724 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: increase the display rate from web cam Pin
Dave Kreskowiak5-Sep-09 1:54
mveDave Kreskowiak5-Sep-09 1:54 
QuestionWhy are my status and progress bars not updating Pin
Sonhospa4-Sep-09 13:26
Sonhospa4-Sep-09 13:26 
AnswerRe: Why are my status and progress bars not updating Pin
Luc Pattyn4-Sep-09 13:45
sitebuilderLuc Pattyn4-Sep-09 13:45 
GeneralRe: Why are my status and progress bars not updating Pin
Sonhospa4-Sep-09 13:56
Sonhospa4-Sep-09 13:56 
GeneralRe: Why are my status and progress bars not updating Pin
Luc Pattyn4-Sep-09 14:15
sitebuilderLuc Pattyn4-Sep-09 14:15 
NewsRe: Why are my status and progress bars not updating Pin
Sonhospa4-Sep-09 14:35
Sonhospa4-Sep-09 14:35 
GeneralRe: Why are my status and progress bars not updating Pin
Christian Graus4-Sep-09 14:45
protectorChristian Graus4-Sep-09 14:45 
GeneralRe: Why are my status and progress bars not updating Pin
Sonhospa4-Sep-09 15:24
Sonhospa4-Sep-09 15:24 
Yes, Christian, it is! That's why I've been using a delegate... and the funny thing is that it worked as long as I had used everything in the same form, i.e. before changing everything to MDI.

The delegate's called from a function running in a BackgroundWorker, the code is
Private Sub CollectFrames(ByVal bgw As BackgroundWorker, ByVal Handler As ShowProgressDelegate)

    StartMeasuring()
    FramesCollected = My.Settings.MAXFRAMES
    If FramesCollected > Me.DPXList.Count Then FramesCollected = Me.DPXList.Count
    ' create the array class for the frames
    Frames = New clsFrames(FramesCollected)

    Dim ExecutionTime As Integer = 0
    For i As Integer = 0 To Me.FramesCollected - 1
        Frames.Add(Me.DPXList.Item(i))
        If i = 0 Then BGWFileRead.ReportProgress(1)

        Dim thisFrame As clsDPX = Frames.getFrame(i)
        ExecutionTime = GetCurrentMillisecondCount - GetPreviousMillisecondCount
        If Handler IsNot Nothing Then
            Dim ProcessMessage As String = (String.Format("Processing File {0} ({1} of {2})", thisFrame.FileToRead.Name, i.ToString, FramesCollected.ToString))
            Handler.Invoke(CLng(FramesCollected), CLng(i), thisFrame.FileToRead.Name, ProcessMessage, ExecutionTime)
        End If
    Next
End Sub
Private Sub BGWFileRead_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BGWFileRead.DoWork
    CollectFrames(BGWFileRead, AddressOf ShowProgress)
End Sub
Would you think that somewhere there is the hidden reason why the MDI parent form doesn't update? I guess I'll have to leave the problem for a while and find some sleep, it's 3:30 here...
GeneralRe: Why are my status and progress bars not updating [modified] Pin
Luc Pattyn4-Sep-09 15:37
sitebuilderLuc Pattyn4-Sep-09 15:37 
QuestionResizing a control Pin
EliottA4-Sep-09 9:09
EliottA4-Sep-09 9:09 
AnswerRe: Resizing a control Pin
Henry Minute4-Sep-09 10:08
Henry Minute4-Sep-09 10:08 
GeneralRe: Resizing a control Pin
Luc Pattyn4-Sep-09 10:43
sitebuilderLuc Pattyn4-Sep-09 10:43 
GeneralRe: Resizing a control Pin
Henry Minute4-Sep-09 10:52
Henry Minute4-Sep-09 10:52 
GeneralRe: Resizing a control Pin
Luc Pattyn4-Sep-09 11:14
sitebuilderLuc Pattyn4-Sep-09 11:14 
GeneralRe: Resizing a control Pin
Henry Minute4-Sep-09 11:25
Henry Minute4-Sep-09 11:25 
GeneralRe: Resizing a control Pin
Luc Pattyn4-Sep-09 12:19
sitebuilderLuc Pattyn4-Sep-09 12:19 
GeneralRe: Resizing a control Pin
Henry Minute4-Sep-09 12:38
Henry Minute4-Sep-09 12:38 
GeneralRe: Awaiting the language police Pin
Luc Pattyn4-Sep-09 12:52
sitebuilderLuc Pattyn4-Sep-09 12:52 
GeneralRe: Awaiting the language police Pin
Henry Minute4-Sep-09 13:22
Henry Minute4-Sep-09 13:22 
AnswerRe: Resizing a control Pin
DaveAuld4-Sep-09 10:17
professionalDaveAuld4-Sep-09 10:17 
AnswerRe: Resizing a control Pin
Luc Pattyn4-Sep-09 10:45
sitebuilderLuc Pattyn4-Sep-09 10:45 
QuestionUpdate db in ADO.NET Pin
TheMrProgrammer4-Sep-09 7:19
TheMrProgrammer4-Sep-09 7:19 
AnswerRe: Update db in ADO.NET Pin
Henry Minute4-Sep-09 8:37
Henry Minute4-Sep-09 8:37 
AnswerRe: Update db in ADO.NET Pin
Kschuler4-Sep-09 9:34
Kschuler4-Sep-09 9:34 
GeneralRe: Update db in ADO.NET Pin
TheMrProgrammer4-Sep-09 20:51
TheMrProgrammer4-Sep-09 20:51 

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.