I have a question on the custom dropdown that I wrote about.
When I add the code to make the custom drop down, the mask no longer shows and I am no longer able to type into the masked combobox. Is this by design or did I mess something up?
Here is the code (note: dcDatePickerForm is a form with a monthCalendar control in it):
Public Class dcDatePicker
Inherits Gizmox.WebGUI.Forms.MaskedComboBox
Private comboBoxForm As New dcDatePickerForm
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
MyBase.DropDownStyle = ComboBoxStyle.DropDown
Me.CustomStyle = "M"
Me.FormattingEnabled = True
Me.Mask = "00/00/0000"
End Sub
Protected Overrides Function GetCustomDropDown() As Gizmox.WebGUI.Forms.Form
Me.comboBoxForm.DialogResult = DialogResult.None
Me.comboBoxForm.Width = Math.Max(MyBase.Width, Me.comboBoxForm.Width)
Return Me.comboBoxForm
End Function
Protected Overrides ReadOnly Property IsCustomDropDown As Boolean
Get
Return True
End Get
End Property
End Class
Thanks,
Shawn