Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DatePicker in MM different than .NET
Message
 
À
14/06/2004 14:44:16
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00913580
Message ID:
00913931
Vues:
13
Tony,

>Do I need to use the MM Date picker in my MM form, or can I just use the standard control?

We overrode the Value property in the Date Picker control (so it didn't blow up when you tried to store an invalid type to the Value property), to do this we redefined the Value property as type Object rather than DateTime. All you have to do is convert the Value property to DateTime. For example:
Dim DTime As DateTime = CType(Me.mmDateTimePicker1.Value, System.DateTime)
DTime.ToString("d")
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform