Avatar of isnoend2001
isnoend2001
Flag for United States of America asked on

add a msgbox to a vb6 reminder program for repeat reminders

weekly, monthly reminders should have a msgbox "Repeat reminder next week, month, year" etc
or tomorrow for daily reminders
28931379-.zip
Visual Basic Classic

Avatar of undefined
Last Comment
isnoend2001

8/22/2022 - Mon
Martin Liss

Let me know if I should also due it for both one-time date and one-time time reminders and in those cases not say anything about "Repeating" them.
isnoend2001

ASKER
yes both dates and times
Martin Liss

BTW you've never assigned point for this question.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Martin Liss

This will mean another change to the dat file. Are there other people who use this calendar? If so what do you do when there's an updated dat file?
isnoend2001

ASKER
I am the only one  until we are done
Martin Liss

OK good to know, that makes my changes easier now that I don't have to handle down-level versions prior to whatever the last one is.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

In this release:
Display a message via a non-modal form when a reminder comes due
Eliminated the flickering of the grid
28931886.zip
isnoend2001

ASKER
Couple things the msg is behind frmReminder and not centered. Also row is no longer red text in
the grid
isnoend2001

ASKER
msgbox
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Martin Liss

I believe the message is behind because frmReminder is topmost in your case, but I'll check that.

It's not centered because there could be one or more showing at the same time and if they were centered then all but one would be hidden.

It's not red because it's a daily reminder and the the due date has rolled over to the next day.
isnoend2001

ASKER
It's not red because it's a daily reminder and the the due date has rolled over to the next day.
I think it should be red until the messagebox is dismissed then the time updated
Martin Liss

I don't think I can do anything about the time updating, but I may be able to keep the color.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
isnoend2001

ASKER
confusing
Don't Think it is right to ask if the time should be saved for the next day if it already is
isnoend2001

ASKER
If you could do the Red that would be ok
Martin Liss

Don't Think it is right to ask if the time should be saved for the next day if it already is
What do you mean?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
isnoend2001

ASKER
I mean
"It will continue  unless deleted", but it already has been continued in the grid. That's ok if you could do the red  forecolor for the row
Martin Liss

OK I understand what you mean.

 Your "Repeat reminder next week, month, year" etc or tomorrow for daily reminders proposal in the original post didn't say anything about what would happen if the reminder was deleted (although it should be obvious), and in my message which, for example, for a weekly reminder will say "It will continue next week unless deleted"  and I was trying to tell the user that it will repeat every week unless it is deleted.

Would you be happy with changing "continue" to "repeat" so the message will say "It will repeat next week unless deleted"?
isnoend2001

ASKER
Just doing the red forecolor for the row will be ok
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

This stays red.
28931886a.zip
Martin Liss

I found a bug. If you add a daily reminder the Next Reminder at first becomes a large negative number which corrects itself after 10 seconds but then when I start to add a new weekly reminder an error occurs and the daily reminder's Dat/Time becomes a date rather than a time and other reminders start getting the same date/time. Ugh:(
isnoend2001

ASKER
Let me known its Fixed. I will test it
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Martin Liss

I've got a fix but I'm also trying to implement code that will assure that frmDue is always visible. In other words prevent it from ever being completely behind frmReminder.
Martin Liss

Corrected the bug and while I can't always make frmDue be in front of frmReminder, I've added code to make it at least partially visible.
28931886b.zip
isnoend2001

ASKER
Can this be corrected:
msgbox
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

What's wrong with it?
isnoend2001

ASKER
The msgbox is behind the form
Martin Liss

Here's what I said above.

I can't always make frmDue be in front of frmReminder, I've added code to make it at least partially visible.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Martin Liss

It has to do with topmost.
isnoend2001

ASKER
I am trying to think of a workaround. Maybe instead of frmDue a picturebox visible.
The way it is you can't click the buttons on frmDue
Martin Liss

You never mentioned that before!  Let me look at the problem again.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
isnoend2001

ASKER
New Bug
This Am dismissed Alerts
Then frmreminder Had a blank Entry in Reminder description
blank descriptionthen i click view the rtf is correct but the description is missing
detailsclosed the app and reopened
the descripton was still blank
this means it was erased from disk
Martin Liss

this means it was erased from disk
I don't think so. The Description is stored in the dat file, not in the rtf so look there for a blank in the Reminder Description column for a blank entry. If it happens again let me know.
isnoend2001

ASKER
ok
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Martin Liss

Concerning the not being able to click the buttons on frmDue problem. Try this version and let me know if it's better.
28931886c.zip
isnoend2001

ASKER
yes there is a blank
"Yr20160222150152.rtf","02-22-2016","","03-01-2017","Yearly","354 Days","View","X","509760","8:0|:-1|:-1","",""
i changed it yo  this:
"Yr20160222150152.rtf","02-22-2016","Nicky Birthday remind 8 days","03-01-2017","Yearly","354 Days","View","X","509760","8:0|:-1|:-1","",""
don't know how it happened, but something to watch
isnoend2001

ASKER
I tried your new version 2893188c.zip
frmDue did not show at all
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

To prevent the same message to show up multiple times while it's still due, I add the date to the dat file as shown here.


"Dy20160310131641.rtf","03-10-2016","daily 2","9:17 AM","Daily","Due","View","X",")","","","3/11/2016"

Delete the date (but not the quotes) and if it's due it will show up.
isnoend2001

ASKER
It sure seems to me that a picturebox would solve the frmDue problem
picturebox
ASKER CERTIFIED SOLUTION
Martin Liss

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
isnoend2001

ASKER
What would you expect to have happen if several came due at or near the same time?
never considered that
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
isnoend2001

ASKER
I guess an array of picture boxes, not sure
Martin Liss

That's why frmDue is a better method.
isnoend2001

ASKER
Thank you
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.