winzip icon

Common DateTime Picker Replacement in VB6 - [Basic version] - Updated on 03-06-2018

Email
Submitted on: 6/3/2018 7:13:35 AM
By: PGB Prasanna 
Level: Intermediate
User Rating: By 3 Users
Compatibility: VB 6.0
Views: 6990
 
     This simple project demonstrates how you can use System DateTime Picker in your GUI application in order to get/set time or date easily. This is some sort of replacement to common DateTime picker used in vb6, which depends on a relatively large OCX file, which does not even support for modern Windows GUI styles. Please note that this is almost a very basic version.

  • No need common OCX in vb6 to use the DateTime Picker in GUI.
  • Perfectly works on all modern operating systems without any dependency.
  • Better performance compared to the OCX in VB6. (Direct access to SysDateTimePick32).
  • Supports for all modern Windows GUI styles, which you cannot get from the common OCX used in VB6 (not even with the manifest).

New Update: Bug fixed on Windows XP and UC resizing facility added on 03/06/2018.

Your comments are greatly welcome.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 10 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

7/31/2017 12:07:10 AMChenLin

That is great! It's just what I want, and I don't have to add a big OCX to a date selection anymore!!
(If this comment was disrespectful, please report it.)

 
6/21/2018 11:52:56 AMRob

If one wanted a graphic Time Picker (an easier way to quickly choose a time), we could pop up a clock face.
There would be two options at the top "Day" or "Night".
If the user clicks Day, the clock face goes yellow. If they click night, then the clock face goes dark blue (or what ever you believe indicates it is night).
Then the user clicks a spot at the circumference of the circle, and that selects a time. EG 11:00 AM

Rob
(If this comment was disrespectful, please report it.)

 
6/21/2018 6:45:57 PMPGB Prasanna

Rob, thanks for the great suggestion.
(If this comment was disrespectful, please report it.)

 
7/1/2018 4:51:01 PMsureshkumar

That is great!, thanks rob,
(If this comment was disrespectful, please report it.)

 
7/30/2018 3:29:03 PMAeric

This will be useful
(If this comment was disrespectful, please report it.)

 
7/30/2018 3:34:23 PMAeric

I tried download the zip file but Windows Security Essentials detected a virus (Trojan:Win32/Spursint.F!cl) inside the zip. Please remove the exe file and reupload again.
(If this comment was disrespectful, please report it.)

 
10/16/2018 8:01:42 AMchai

It will be perfected if you add the CheckBox property.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.