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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dateTimePickerAdv drop down button

Thread ID:

Created:

Updated:

Platform:

Replies:

66728 Aug 1,2007 03:21 PM Aug 3,2007 08:46 AM Windows Forms 2
loading
Tags: Tools
Ranu Gupta
Asked On August 1, 2007 03:21 PM

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

Vignesh H [Syncfusion]
Replied On August 2, 2007 08:02 PM

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

Ranu Gupta
Replied On August 3, 2007 08:46 AM

Thanks Vignesh.

Ranu

CONFIRMATION

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.

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

;