We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dateTimePickerAdv drop down button

Thread ID:





66728 Aug 1,2007 07:21 PM UTC Aug 3,2007 12:46 PM UTC WinForms 2
Tags: Tools
Ranu Gupta
Asked On August 1, 2007 07:21 PM UTC


I have dateTimePickerAdv and combo box on a form. I want to have OfficeXP look for all my controls. I am having trouble giving OfficeXP look to the dateTimePickerAdv control. I have done following settings for it:

Border3DStyle - Flat
BorderStyle - FixedSingle
BorderColor - Black
FlatDropButton - True
ThemedChildControls - True
ThemesEnabled - True

Settings for my OfficeXP style combo box are:
Border3DStyle - Flat
FlatBorderColor - ControlText
FlatStyle - Flat
Style - OfficeXP

I have following issues:
1. Drop down button on dateTimePickerAdv has gray border rather than black.
2. It displays raised 3D style when cursor hovers over it during run time.

How can I make the drop down button on dateTimePickerAdv look and behave same as the drop down button on my flat style combo box.

I am attaching a sample for your reference.



Vignesh H [Syncfusion]
Replied On August 3, 2007 12:02 AM UTC

Hi Ranu,

Thank you for your details.

When the Style property of the dateTimePickerAdv is set to Office XP, the border color of the control is not set properly.

How ever you can draw a rectangle border around the dateTimePickerAdv as a work around and the code snippet is shown below.

private void Form1_Paint(object sender, PaintEventArgs e)
Rectangle rect = (Rectangle)this.dateTimePickerAdv1.Bounds;
Graphics grpx = this.CreateGraphics();
grpx.DrawRectangle(Pens.Black, rect);

We are filing a defect report on this issue and we will appreciate if you Could please create a Direct-Trac incident with the subject "dateTimePickerAdv drop down button-F66728" so that we could give more details regarding the fix.

Thank you for using Syncfusion Products.



Ranu Gupta
Replied On August 3, 2007 12:46 PM UTC

Thanks Vignesh.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon