.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Steve Jackman
Imran Ghani
Santhakumar Munuswamy

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

month calender in windows application

Posted By: vasantha     Posted Date: August 09, 2012    Points:5   Category :C#
i design monthcalender at runtime in windows application.In that control i disable past dates using monthcalender.minvalue but i cant change color in gray that past dates.how to change color that dates in month calender windowsapplication of c#.net

Responses
Author: Narayanan             
Posted Date: August 09, 2012     Points: 20   

Hi,
try this code..
dateTimePicker1.MaxDate = DateTime.Now;
dateTimePicker1.CalendarForeColor = Color.LightGray;


Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend