akoloff 0 Newbie Poster

I am wondering if it is possible at all to do the following things with modal dialog:

I want some kind of task scheduler to automatically open dialog and execute the code, which is envoked usually by pressing the button inside the dialog.
The problem is as soon as I call dlg.DoModal it requires user interaction and I can't call the function for the button.

How do I do it?
All code works well in regular mode with user interactions and the timers are created and work as well. The problem is executing the code behind the dialog button.

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.