Have date picker open to a date that is clicked in a mshflexgrid vb6

i have 2 columns of dates in a mshflexgrid that when clicked open datepicker to the date clicked
have the new selected date entered into mshflexgrid replacing the date clicked in this format 02-25-2016 not 02/25/2016
the date picker form will close when a new date is selected
how to do this ?
project enclosed
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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:
Try this. You'll need to supply the .dat file. The changes are marked with "Q28863759 A".
isnoend2001Author Commented:
the year or month cannot be changed i clicked the the little cmdbuttons and the form just unloads
Martin LissOlder than dirtCommented:
The dtPicker does not have a way to distinguish between clicking a day or a month or a year, so I added a command button to the form that the user needs to click when they are done.

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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

isnoend2001Author Commented:
thanks, but i was trying to avoid using a command button, just like my first post on using frmCalendar to avoid clicks
Martin LissOlder than dirtCommented:
IMO it's better to have a command button and it doesn't matter it's frmDatePicker or frmCalendar. The reason I say that is that if they choose the wrong date they 1) may not even notice and 2) they'd have to do it again. With the command button they at least get a chance to confirm that they've made the choice they intended.
isnoend2001Author Commented:
After giving more thought i am not going to use datepicker, just frmCalendar. just need to distinguish between new and editing the grid
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.