Good morning and hope everyone had a great weekend.
It’s my birthday. At this point you can keep them folks. The big "40". That’s right folks. I am officially old as dirt. I have the ribbon my daughter gave me to prove it! It just happens to say "Old As Dirt"! I also got a basketball hoop to put up in my driveway (a must have for anyone with kids I think), and a box of Skittles. I LOVE Skittles but they don’t love me. Tonight I think my wife is taking me out to eat. We shall see.
Well my little girl went away for a week to camp this weekend. She had such a hard time having her mom leave. Its taking everything in me right now not to go up to the camp and get her after hearing how she cried when mom left and begged her to stay. I know this is part of the process of growing up so I am not going to. Still, it is not easy to hear your daughter struggling like this.
Other than that my weekend was good.
Anyway, we want to create and run BackGroundWorker components at Runtime. Pretty easy stuff but it is what I was working on yesterday. If you are at all familiar with threading, its really not that big of a leap. Have a good day!
Imports System.ComponentModel Public Class Form1 Private m_WorkerList As New List(Of BackgroundWorker) Private Sub StartWorkers() Dim worker As New BackgroundWorker() AddHandler worker.RunWorkerCompleted, AddressOf JobDone AddHandler worker.DoWork, AddressOf DoJob m_WorkerList.Add(worker) End Sub Private Sub DoIt() End Sub Private Sub DoJob(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) MsgBox("JobDone") End Sub Private Sub JobDone(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) MsgBox("JobStarted") End Sub End Class