Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Custom Date Picker Control

A related problem that I have been having with creating my own custom
controls is that most controls do not seem to have any "GetFocus" or
"LoseFocus" events. Am I simply missing these somehow or do they actually not
exist?

"Lucas Swanson" wrote:

In a VBA userform, is there any way at all to change the background colour
of the portion a date and time picker control (DTPicker) that resembles a
combo box? Although this control appears to be inherited from the generic
MSForms.Control (or a derived class of it), it seems to have somehow
overridden the base class BackColor property with a private property or
something, causing this property to be innaccessible in the DTPicker control
class.


I am developing a form for entering data into Excel and for some of the
fields have dates as values. I really like the built-in date and time picker
control for this, except that I want to be able to change the background
colour of the part of the control that looks like a combo box. And that is
simply not possible with the standard date and time picker. How can I get
around this problem?

I have been trying to create a custom control to emulate the date and time
picker by combining a standard combo box with a hidden month view control
that becomes visible when the user presses the dropdown button of the command
box, but have been having a lot of trouble with this.

Another thing is, even if I select the DTPicker control and click on the
"send to back" button, the DTPicker still shows up on the form on top of any
other controls. The DTPicker is a nice and useful control to use for entering
dates, but it seems to lack some significant functionality that really should
be inherited from the basic control class.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date picker control Ricardo F Excel Discussion (Misc queries) 2 October 20th 08 03:44 PM
date and time picker control Ashku Excel Discussion (Misc queries) 0 July 22nd 06 11:18 AM
Custom Date Picker Control Lucas Swanson Excel Programming 0 April 21st 06 04:13 PM
date time picker control MacroCharlie Excel Programming 0 November 16th 05 04:01 PM
Date and Time Picker Control Andy T Excel Discussion (Misc queries) 0 January 6th 05 04:09 PM


All times are GMT +1. The time now is 09:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"