Click here to Skip to main content
15,867,330 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: DispatcherTimer Pin
michaelbarb8-Dec-20 4:24
michaelbarb8-Dec-20 4:24 
AnswerRe: DispatcherTimer Pin
Gerry Schmitz8-Dec-20 6:30
mveGerry Schmitz8-Dec-20 6:30 
GeneralRe: DispatcherTimer Pin
michaelbarb8-Dec-20 6:37
michaelbarb8-Dec-20 6:37 
QuestionDifferences Pin
michaelbarb30-Nov-20 6:36
michaelbarb30-Nov-20 6:36 
AnswerRe: Differences Pin
Richard MacCutchan30-Nov-20 6:45
mveRichard MacCutchan30-Nov-20 6:45 
QuestionDependencyProperty Binding Problem Pin
Kevin Marois2-Oct-20 6:02
professionalKevin Marois2-Oct-20 6:02 
QuestionReuseable Triggers? Pin
Kevin Marois18-Sep-20 9:07
professionalKevin Marois18-Sep-20 9:07 
Questionload usercontrol in background worker Pin
Rusdy Perkasa8-Sep-20 21:31
Rusdy Perkasa8-Sep-20 21:31 
hi i have problem load usercontrol in background worker,can anyone help me?
this is my code

Private Sub bwstartup_DoWork(sender As Object, e As DoWorkEventArgs) Handles bwstartup.DoWork
        'load some data
        LoadData()
        bwstartup.ReportProgress(15)
        LoadData2()  
        bwstartup.ReportProgress(20)

        Dispatcher.Invoke(Sub() LoadUserControl())
        bwstartup.ReportProgress(30)
       
        Dispatcher.Invoke(Sub() LoadUserControl2())
        bwstartup.ReportProgress(40)
    End Sub

    Private Sub bwstartup_ProgressChanged(sender As Object, e As ProgressChangedEventArgs) Handles bwstartup.ProgressChanged
        loadingbar.Value = e.ProgressPercentage
    End Sub

    Private Sub bwstartup_RunWorkerCompleted(sender As Object, e As RunWorkerCompletedEventArgs) Handles bwstartup.RunWorkerCompleted

    End Sub


the problem is:
its work on reportprogress(15) to reportprogress(20)
but then freeze until completed LoadUserControl2
so reportprogress(30) is not showing.

thx
AnswerRe: load usercontrol in background worker Pin
Gerry Schmitz9-Sep-20 4:22
mveGerry Schmitz9-Sep-20 4:22 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa9-Sep-20 20:06
Rusdy Perkasa9-Sep-20 20:06 
AnswerRe: load usercontrol in background worker Pin
Dave Kreskowiak9-Sep-20 4:46
mveDave Kreskowiak9-Sep-20 4:46 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa9-Sep-20 20:14
Rusdy Perkasa9-Sep-20 20:14 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak10-Sep-20 3:50
mveDave Kreskowiak10-Sep-20 3:50 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa10-Sep-20 15:56
Rusdy Perkasa10-Sep-20 15:56 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak10-Sep-20 16:29
mveDave Kreskowiak10-Sep-20 16:29 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa10-Sep-20 17:15
Rusdy Perkasa10-Sep-20 17:15 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak10-Sep-20 18:02
mveDave Kreskowiak10-Sep-20 18:02 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa10-Sep-20 18:41
Rusdy Perkasa10-Sep-20 18:41 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak11-Sep-20 2:32
mveDave Kreskowiak11-Sep-20 2:32 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:13
Rusdy Perkasa11-Sep-20 17:13 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak11-Sep-20 18:36
mveDave Kreskowiak11-Sep-20 18:36 
GeneralRe: load usercontrol in background worker Pin
Gerry Schmitz11-Sep-20 9:29
mveGerry Schmitz11-Sep-20 9:29 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:20
Rusdy Perkasa11-Sep-20 17:20 
GeneralRe: load usercontrol in background worker Pin
Mycroft Holmes11-Sep-20 12:20
professionalMycroft Holmes11-Sep-20 12:20 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:27
Rusdy Perkasa11-Sep-20 17:27 

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.