Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Usercontrol Visibility -Date Picker with Nulls

Status
Not open for further replies.

Lenvdb

Programmer
Jun 21, 2002
81
GB
Hello Gurus!
I have taken some time to study the Microsoft Datepicker. It is some sloppy combination of a Textbox and a MS Monthalendar control, where the clever MS developer could very easily have added the ability to handle NullDates. I have done this now by simply adding a property or 2 to the new Usercontrol I created.

My problem is this now, and here I need some help.
I expand the size of the user control when opening up the Calendar. When I am in a GroupBox or on the edge of the form, the calendar control is only visible until the edge of the form or the border of the groupbox, displaying only a part of the actual Calendar.

How do I make it so it is completely visible, even over the edges/borders of the groupboxes or forms? I would be willing to share sourcecode if anyone is interrested...
But it will give us a Datepicker (Free) with NullDate capabilities that is almost identical to the Microsoft Datepicker.


Bless you
Len


Quiet as a bulldozer Mate!
 
Lenvdb, Forgive me I'm a newbie.

I found a macro for Solidworks that I've modified some. It seems that you've found the answer to one of my questions. I'm using the datepicker and it puts in todays date by default. I would like it to be blank until a date is picked by the user. Below is what I've got. I'm sure it has to do with the Now statement but I don't know what else to put in.

Private Sub date_picker_CallbackKeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer, ByVal CallbackField As String, CallbackDate As Date)

End Sub

'Set Date Picker to today
date_picker.Value = Now


Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top