- Jul 23, 2006
- 3,934
- 0
- 76
I have to modify a VB.net windows forms application to add another form to it. Since I don't have much experience in VB, I just wrote the new form in C# and imported it into the VB project. The VB project has one Main form that holds most of the application logic, including a timer (System.Windows.Forms.Timer) that fires every 100 or 200ms to update data.
The odd behavior I'm experiencing is whenever I show my new form (using Form.Show), this timer stops firing until I close the child window. I put my call to myform.show() right after a call to existingform.show(), but the existing form doesn't impact the timer. The only differences I can find are that my form is C#, and it resides in a separate assembly. I've scoured the source code, and there are no references to timer.Stop() or timer.Enabled=false, so I really don't know what could be causing this problem. Any WinForms gurus have ideas for places too look?
EDIT: I should add that even after my form is shown, the form holding the problem timer stays responsive (I can click components and their OnClick handlers will still fire, it's just the one timer that stops working).
The odd behavior I'm experiencing is whenever I show my new form (using Form.Show), this timer stops firing until I close the child window. I put my call to myform.show() right after a call to existingform.show(), but the existing form doesn't impact the timer. The only differences I can find are that my form is C#, and it resides in a separate assembly. I've scoured the source code, and there are no references to timer.Stop() or timer.Enabled=false, so I really don't know what could be causing this problem. Any WinForms gurus have ideas for places too look?
EDIT: I should add that even after my form is shown, the form holding the problem timer stays responsive (I can click components and their OnClick handlers will still fire, it's just the one timer that stops working).
Last edited: