Print Page | Close Window

DatePicker border appearance not updated

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=18491
Printed Date: 25 April 2024 at 6:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DatePicker border appearance not updated
Posted By: rmcgaffic
Subject: DatePicker border appearance not updated
Date Posted: 03 June 2011 at 8:36pm
I am using the Codejock AccessSample for the Calendar control and its companion DatePicker control.
 
In my application, just like the sample, my controls are called
CalendarControl1
DatePicker2.
 
When I load my form, I have tried all of the following:
 
Me.DatePicker2.BorderStyle = xtpDatePickerBorderNone
Me.DatePicker2.BorderStyle = xtpDatePickerBorder3D
Me.DatePicker2.BorderStyle = xtpDatePickerBorderOffice
Me.DatePicker2.BorderStyle = xtpDatePickerBorderStatic
 
and no matter my choice, the appearance of the DatePicker control is unchanged from the Codejock sample.   See screenprint attached.
 
I have even changed the Visual Theme property of DatePicker2 and used the following values:
xtpThemeOffice2000
xtpThemeOfficeXP
xtpThemeOffice2003
xtpThemeResource
 
and you guessed it, the appearance of the DatePicker control is unchanged from the Codejock sample.
 
Can anyone tell me what is wrong with my syntax or what I need to do to change the border surrounding the DatePicker control.
 
Thanks,
Bob McGaffic



Replies:
Posted By: Oleg
Date Posted: 06 June 2011 at 7:06am
Seems BorderStyle conflicts with Borderstyle property of Access.

Try instead

    Me.DatePicker0.Object.BorderStyle = xtpDatePickerBorderNone
    Me.DatePicker0.Object.VisualTheme = 3



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rmcgaffic
Date Posted: 06 June 2011 at 9:55am

Oleg,

Thanks for the suggestion. 
This code does indeed remove the border from the DatePicker control:
Me.DatePicker0.Object.BorderStyle = xtpDatePickerBorderNone
 
Is there anywhere the anomolies of MS Access with respect to CodeJock controls specified?
 
Bob McGaffic



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net