Can anyone know how to make a readonly datetime picker in VB.NET?
thanzeem7
0
Newbie Poster
Recommended Answers
Jump to PostHow can the user pick the date and time if it's read only? You need some clarification there. If you want to display the date and time as read only use a label and the built in tostring functions of the datetime class.
Jump to PostI guess if you you have it formatted to a short date format, then allowing the user to invoke the dropdown to show the MonthCalndar may be of some use.
Anyways, making a readonly DTP control is fairly easy.
Public Class ReadOnlyDTP Inherits DateTimePicker Public Shadows Property …
All 5 Replies
tinstaafl
1,176
Posting Maven
azareth
5
Posting Whiz in Training
TnTinMN
418
Practically a Master Poster
Reverend Jim
commented:
I've been wanting just that trick for something else. Thanks.
+12
tinstaafl
1,176
Posting Maven
M.Waqas Aslam
67
Posting Pro in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.