dateTimePickerAdv drop down button

Hi,

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.

Thanks,
Ranu


DateTimePickerAdvProblem.zip

2 Replies

VH Vignesh H Syncfusion Team 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.

Regards
Vignesh


NewDTP.zip


RG Ranu Gupta August 3, 2007 12:46 PM UTC

Thanks Vignesh.

Ranu

Loader.
Up arrow icon