Home All Groups Group Topic Archive Search About

Creating a date picker feature in VB 6

Author
21 Mar 2006 4:13 AM
Kreegor
hello all. I have searched high and low and have not been able to find
an easy to understand guide of creating a date picker box (from
scratch) in VB 6. I am fairly new to it and know most of the standard
coding but I am really having trouble getting this. I have read about
CreateWindowEx and from what I can gather this is how you make a date
picker. Can someone please give me a step-by-step guide as to how to do
one? Just something simple.

Thanks everyone

Author
21 Mar 2006 4:28 AM
Rick Rothstein
> hello all. I have searched high and low and have not been able to find
> an easy to understand guide of creating a date picker box (from
> scratch) in VB 6. I am fairly new to it and know most of the standard
> coding but I am really having trouble getting this. I have read about
> CreateWindowEx and from what I can gather this is how you make a date
> picker. Can someone please give me a step-by-step guide as to how to do
> one? Just something simple.

If you elect to do it yourself, it won't be simple. I'm curious... why do
you want to do this instead of using the one Microsoft has already provided?
If you are not aware of it, you will find it as part of the Common
Controls-2 which you can load by selecting Project/Components... from VB's
menu. After you do that, the DatePicker, MonthView, Animation, UpDown and
FlatScrollBar controls will be added to your project's component palette.
You can then select DatePicker from there.

Rick
Author
21 Mar 2006 4:36 AM
Kreegor
Ahhh thank you very much. No I wasn't aware of that... My training in
VB 6 isn't very extensive and this is the first time I have tried
anything like a date picker.

Thanks again Rick