VB.NET 2008 - DateTimePicker Colors ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kirsten
    New Member
    • Feb 2008
    • 19

    VB.NET 2008 - DateTimePicker Colors ?

    I am trying to set the colors for the DateTimePicker. I managed to change all the calendar colors - that is, of the calendar after the DateTimePicker is click and the Calendar is opened, but nothing I do changes the colors of the control before it is click on, when it looks like a textbox. How can I change those colors?

    the color properties that I have changes so far are:
    .CalendarForeCo lor
    .CalendarTitleF oreColor
    .CalendarTraili ngForeColor
    .CalendarTitleB ackColor
    .CalendarTitleB ackColor
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Try applying a CssClass to it and manipulating it with CSS?


    On a side note, I am jealous that your DateTimePicker uses a textbox at all, I tried to use it and it just stuck a stupid calender on my page, throwing off everything.

    Comment

    • Kirsten
      New Member
      • Feb 2008
      • 19

      #3
      VB.NET is what I'm using, not ASP.NET. I don't believe there is any CSS support in VB and Windows Forms....


      Originally posted by Plater
      Try applying a CssClass to it and manipulating it with CSS?


      On a side note, I am jealous that your DateTimePicker uses a textbox at all, I tried to use it and it just stuck a stupid calender on my page, throwing off everything.

      Comment

      • Shashi Sadasivan
        Recognized Expert Top Contributor
        • Aug 2007
        • 1435

        #4
        The property of the textbox colur of a datetimepicker is protected and cannot be changed directly,
        This was one of the discussions at msdn here

        Im not sure if this would have changed with 3.0 / 3.5 controls

        Comment

        • Kirsten
          New Member
          • Feb 2008
          • 19

          #5
          That really sucks.
          BTW, I'm using 3.5



          Originally posted by Shashi Sadasivan
          The property of the textbox colur of a datetimepicker is protected and cannot be changed directly,
          This was one of the discussions at msdn here

          Im not sure if this would have changed with 3.0 / 3.5 controls

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Sorry about that. I guess that explains why I got a calender and you got a textbox, hehe.

            MS just released service packs for .NET on monday, did you install them and see if they fixed that issue? I wouldn't hold my breath, but you might have gotten lucky on it.

            Comment

            • Kirsten
              New Member
              • Feb 2008
              • 19

              #7
              Service Pack for VS 2008?

              Maybe I can find a third party DateTimePicker that I can use instead.
              Do you know of any?

              Originally posted by Plater
              Sorry about that. I guess that explains why I got a calender and you got a textbox, hehe.

              MS just released service packs for .NET on monday, did you install them and see if they fixed that issue? I wouldn't hold my breath, but you might have gotten lucky on it.

              Comment

              • Plater
                Recognized Expert Expert
                • Apr 2007
                • 7872

                #8
                No, I ment to the .NET frameworks they released a service pack.

                Comment

                Working...