G
G .Net
Hi Everybody
I was wondering if you experts could cast your eyes over the following code
and tell me if I'm doing anything obviously wrong. The code works but causes
some unexpected things in an application I'm writing e.g. a form I'm setting
to be hidden using .Hide is not hidden:
Private m_threadProgress As New Thread(AddressOf ProgressForm)
' the next few lines occur in a sub
If Me.m_threadProgress.IsAlive = False Then
Me.m_threadProgress = New Thread(AddressOf ProgressForm)
End If
Me.m_threadProgress.Start()
' do some other stuff
Me.m_threadProgress.Abort()
' display another form
Can you give me any advice as to whether I'm doing this correctly?
Thanks in advance
G
I was wondering if you experts could cast your eyes over the following code
and tell me if I'm doing anything obviously wrong. The code works but causes
some unexpected things in an application I'm writing e.g. a form I'm setting
to be hidden using .Hide is not hidden:
Private m_threadProgress As New Thread(AddressOf ProgressForm)
' the next few lines occur in a sub
If Me.m_threadProgress.IsAlive = False Then
Me.m_threadProgress = New Thread(AddressOf ProgressForm)
End If
Me.m_threadProgress.Start()
' do some other stuff
Me.m_threadProgress.Abort()
' display another form
Can you give me any advice as to whether I'm doing this correctly?
Thanks in advance
G