ADO DOT NET
Centurion
- Joined
- Dec 20, 2006
- Messages
- 160
Hi everybody,
I just use this simple code to run a process on a safe-thread:
There is a problem here that this Message Box will not be shown as MODAL.
I really need that this message box appear in MODAL state.
Usually a message box will be shown as modal, so how should I fix this probelm?
Thank you all
I just use this simple code to run a process on a safe-thread:
Visual Basic:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim thRead As New Thread(New ParameterizedThreadStart(AddressOf myThread))
thRead.Start()
End Sub
Private Sub myThread(ByVal o As Object)
'...my process...
MessageBox.Show("hi")
End Sub
I really need that this message box appear in MODAL state.
Usually a message box will be shown as modal, so how should I fix this probelm?
Thank you all