I have a new thread that opens up when I hit a query button. I'm not sure I am opening the "Form2" correctly because I do not see it when running tests however, the debug doesn't pick anything up. Here is the code:
vb Code:
Public Sub ShowProgBar() Dim form2PB As Form = mywindowsapp1.Form2 form2PB.Show() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'validate the text fields 'some code that does some stuff..... Dim thread1 As System.Threading.Thread thread1 = New System.Threading.Thread(AddressOf ShowProgBar) thread1.Start() 'more code that does some stuff 'processes running while progress bar should be displaying MessageBox.Show("Processes Complete") Application.Exit() 'this is also where the progress bar thread should terminate End Sub
I am wondering why I am not seeing Form2 (containing my progressbar) during this.
Thanks


Reply With Quote
