Controls and datepicker
C#
3
Posts
3
Posters
1
Views
1
Watching
-
can you rephrase your question ? Shardool Karnik Lead Software Engineer Compass Technologies, Inc. http://www.compasstec.com
-
You have to cast the reference:
DateTimePicker dtp = ctl as DateTimePicker; DateTime value = DateTime.MinValue; if(dtp != null) { value = dtp.Value; } else { // Not a DateTimePicker control, react accordingly }
I hope this helps!! -- LuisR
Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!