Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change background for a datetime picker
Message
 
À
22/08/2005 22:38:13
Xiaodong Yan
Better Database Solutions
Spring, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01042801
Message ID:
01042809
Vues:
19
Sheldon,

>Tried to change background color to reflect changes. Problem on Picker controls.
>
>No luck from following lines.
>
>dtpdatestart.backcolor=system.drawing.color.yellow
>
>dtpDateStart.BackgroundImage = System.Drawing.Image.FromFile("yellow.bmp")

That's because mmPicker is a user control and the text box you are trying to change the backcolor on is contained with the user control. To set the background color of the textbox do the following:
this.dtpdatestart.txtEntry.BackColor = System.Drawing.Color.Bisque;
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform