?
Solved

DTpicker Backcolorproperty

Posted on 1999-11-29
8
Medium Priority
?
420 Views
Last Modified: 2013-12-26
I can change the colors off the calendar, but can I also change the backcolor of the DTpicker-box on the form?
0
Comment
Question by:Flemish
  • 4
  • 3
8 Comments
 

Expert Comment

by:Sharmi
ID: 2248672
DT Picker doesn't have the property to set the back color of the control
0
 

Author Comment

by:Flemish
ID: 2248858
Isn't it possible with any API?
0
 
LVL 2

Expert Comment

by:dhwanilshah
ID: 2265785
I dont know about a API, but I think it could be done with VC++, as Ive seen a lot of documentation of such controls and how they are implemented internally in MSDN
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 

Author Comment

by:Flemish
ID: 2267779
I'm using VB6.0
0
 
LVL 2

Accepted Solution

by:
dhwanilshah earned 150 total points
ID: 2270573
I have made a custom control in VB 6.0 based on FlexGrid control that mimicks the DTPicker control. If u wish I could post it to u in return of points with source code. It supports the setting of back color of specific dates. It also is better then DTPicker in this context as DTPicker just gives you an array of numbers and you have to determine if you want to set it bold or not. This control of mine, actually gives u two options, one through an method like this : deescal.SetDateBackColor(vDate as date)

and an event that is very much like dtPickers GetDayBold event :

Private Sub DeesCal_MonthYearChange(mStartDate as Date, mEndDate as Date)
'here you can check if you want to highlight specific dates if they fall withing the start and end dates easily.
End Sub
0
 

Author Comment

by:Flemish
ID: 2271052
please mail the code to me, and thanks in advance.
0
 
LVL 2

Expert Comment

by:dhwanilshah
ID: 2273278
Flemish, I cant find your eMail address, please tell that to me and I will post the code. Also I cant seem to find anyones email address off this service, can u tell me how thats done? I clicked on your name, but that just gave other info, not the email address.
0
 

Author Comment

by:Flemish
ID: 2362348
Sorry my answer is so late, but we changed our network and we also took some vacation.  But now were back in bussiness.  About the e-mail, I can't see them either and I have no clue why.
My e-mail is SergeHanssens@JOVICO.be Thanks for the aid.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question