Search code examples
vb.netwinformsdatetimepicker

VB.Net DateTimePicker edit calendar portion


I am trying to use a date time picker to get a month and year from the user (no date). I have the text box portion of the control set correctly but I was wondering if there is a way for me to edit the calendar control so that it only allows selection of months and years or if I can remove that calendar control all together? I have searched for a while but found nothing addressing my question, everything I found refers to the text box portion of the control.

Thanks in advance!


Solution

  • http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.customformat.aspx

    The CustomFormat property looks like you should be able to handle that in the control.