Can anyone know how to make a read-only DateTime picker in VB.NET?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no built-in way to change the
DateTimePickercontrol to read-only. You could probably create your own custom read-only control that either contains or inherits theDateTimePickercontrol, however, you have several other much simpler options:DateTimePickercontrol. You should, instead, use aLabelcontrol.DateTimePickercontrol and just toggle theEnabledproperty to switch it between editable and read-only modes.TextBoxcontrol and set it’sReadOnlyproperty toTrue.