Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change background for a datetime picker
Message
 
To
22/08/2005 22:38:13
Xiaodong Yan
Better Database Solutions
Spring, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01042801
Message ID:
01042809
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform