I know it works somewhat like this:
MyUserForm.Controls.Add("System.Controls.DateTimePicker",
"SomeUniqueControlName", True)
...but I can't find out the class name of the date picker control??? What is
the correct name?
My system is Windows XP SP3 / Office 2003 and I'm working on a VBA project
in an Excel file.
The class name is "MSComCtl2.DTPicker". Hope it helps other people.
Thought you said that control wasn't available, by default, on Vista?
--
.NET: It's About Trust!
http://vfred.mvps.org
You might look for a UserControl wrapper around the system datepicker control.
That'd remove the need for the OCX completely. I know many folks have written
these, and I'd suspect there are a fair number out there. For example...
or, for the wary...
Why not install the control from XP or wherever it comes from? Can they not get
configured with an XML Manifest file to get them loaded on Vista?
--
Jim Carlock
Naturally Cures Pink-Eye (Conjunctivitis)/Sty (Hordeolum)
http://www.associatedcontent.com/article/381336/saliva_a_natural_cure_for_conjunctivitis.html
Good at writing? Earn some money.
http://www.associatedcontent.com/join.html?refer=112327