Windows App Design Question
Posted on 2002-06-12
This is my first bout at writing a windows app. I have a basic app
that when it starts it displays a listview with items that I have
populated. Each item that was displayed in the listview has a time
interval associated with it. So after a set amount of time I need to
run a given function and update the listview.
When the app starts at the main entry point it first initializes and
calls the constructor of the class and I cant place it in the
constructor because at that point the app is not running. When the
constructor finishes it calls the Application.Run(yourForm).
My question is that I am not exactly sure where or how do I accomplish
something like this. I thought of two ideas and was not sure if I was
on the right path.
1.) I could use the timer class and tie in an event handler to it.
2.) I could spawn off multiple threads, one to launch the app and one
to monitor the items.
Thanks For Any Guidance.