Avatar of VK
VK
Flag for Germany asked on

VB6: DTPicker, How to change ForeColor, BackColor and Appearance of it's Combo-Component

Hello experts.

I have a UserControl which consists of a DTPicker(from Microsoft).
The UserControl has properties that are listed in the question title.
All Controls in the usercontrol except the DTPicker expose the needed properties.

Has somebody a workaround for this problem ?

Regards

V.K.
Visual Basic Classic

Avatar of undefined
Last Comment
VK

8/22/2022 - Mon
EDDYKT

EDDYKT

VK

ASKER
Hello EDDYKT.

Thanks for the link. Unfortunely the provided control doesn't expose the needed properties. Further it isn't supported by Microsoft.

What i need to do in Detail:

1. Set the Appearance of the DTpicker to 2D (with FixedSingle Border) - this isn't supported by the control ccrpdtp6 (raised and sunken are supported)

2. Set the BackColor (not of the calendar)
3. Set the ForeColor (not of the calendar)

The link provided looks like a UserControl which consists of the original DTPicker - wrapped with additional functions without going deeper in DTPicker itself.

Your help has saved me hundreds of hours of internet surfing.
fblack61
VK

ASKER
Is there an API to do that ?
With SendMessage like with ComboBoxes or ListView ?
ASKER CERTIFIED SOLUTION
EDDYKT

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
VK

ASKER
Hi, EDDYKT.

I solved that problem with the NeoCalendarII.ocx from NeoComponents.com. It isn't from Microsoft, but the source code is available and cheap.
Nevertheless i will give you the points. You initiated my search with your link and it succeeded:-)

V.K.
CleanupPing

Hi VK,
This old question (QID 20566301) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
VK

ASKER
Ty for your collaboration.