i have a vb reminder program that opens a form when time is due using vb6

the due time is in a msflexgrid
a timer updates the time every 10 seconds
the reminder stays at 0 Minutes for a minute.
How can i make the form open as soon as the time gets to 0 minutes or
have it count down
50 Seconds
40 seconds
etc ?
28928163.zip
isnoend2001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
I'm going to try to show frmDeferTime immediately after the time is zero.
isnoend2001Author Commented:
ok
Martin LissOlder than dirtCommented:
This shows frmDeferTime within 10 seconds of the Next Reminder becoming "0 Minutes".
28928252.zip
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

isnoend2001Author Commented:
It seems to show the for faster, i deferred it 15 minutes and the wrong row is highlighted
if fact no row should be light red
grid
isnoend2001Author Commented:
it would be good if the top rows forecolor was vbred
isnoend2001Author Commented:
the deferred time does not count down in the Next Reminder Column
i think it did in the previous version
Martin LissOlder than dirtCommented:
You say two conflicting things.
if fact no row should be light red
it would be good if the top rows forecolor was vbred
Which way do you want it?

Also in another thread you told me that once something was 0 minutes that it shouldn't change and I believe that's why it doesn't count down when it's deferred.
isnoend2001Author Commented:
Which way do you want it?
forcolor red, not backcolor, the backcolor was for deleting a reminder
shouldn't change and I believe that's why it doesn't count down when it's deferred.
In the other thread After it got to 0 it would switch to the next day. this should not happen on a one time AMPM
Martin LissOlder than dirtCommented:
So under what circumstances should the forecolor be red?
isnoend2001Author Commented:
Yes the proper row with backcolor white
Martin LissOlder than dirtCommented:
That doesn't answer my question so let me put it another way. When should the grid forecolor of a reminder become red? When it is deferred?
isnoend2001Author Commented:
it turns red when it is due and stays red. deferred or not
Martin LissOlder than dirtCommented:
Here's a new version. Changes include
Make frmDeferTime appear immediatly after Next Reminder becomes "0 Minutes"
When a reminder is deferred, make the ForeColor red
When a reminder is deferred, count down Next Reminder from the deferred to  (Delay) time
When the user chooses Delete from frmDeferTime, make the backcolor of the row light red

Note that in the 28928163.zip file that you uploaded in this thread that you have three Options folders: the first under the FactsFolder folder, the second under the Personal folder and the third under the Tasks folder. The program looks for the one under the Tasks folder so in this zip file I've deleted the other two.
28928252a.zip
isnoend2001Author Commented:
Something is wrong
i made a new 5 minute reminder as soon as it counted down to 0 minutes it displays the defer form
ok so far
but then when deferring the time 5 minutes the wrong row is red text
and the 5 minute defer time does not count down
I think a better way is to color the row as soon as it hits 0 color the row, instead of when defer is clicked
delay
Martin LissOlder than dirtCommented:
Please attach your complete project including the dat files renamed to txt files.
isnoend2001Author Commented:
Martin LissOlder than dirtCommented:
When you color a row you need to specifically set the .Row property of the grid and I had forgotten to do that.
28928252b.zip
isnoend2001Author Commented:
Still has the same problem
I think the red text should be set when the time gets to 0, before frmDeferTime is shown Rather than when the defer is set
Martin LissOlder than dirtCommented:
Here is what I did to reproduce the problem you reported earlier.
I created a onetime time reminder for 6 minutes in the future.
While it was approaching its due time I Viewed another reminder
When frmDeferTime showed up I selected 5 minutes and when I did that the reminder that I Viewed became red rather than the one time reminder.

I added code to fix that and did the same thing and it worked as it should so you need to tell me exactly the steps that led to the problem when you ran it using my new code.
isnoend2001Author Commented:
I think if you delay the defer for a few seconds the sort  moves the row. still the row should be red before
the defer form is shown.
see if you delay deferring the reminder if once frmdeferTime is shown you get the problem
defer time
Martin LissOlder than dirtCommented:
One more time.
28928252c.zip

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
isnoend2001Author Commented:
Works good thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.