Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. System.Windows.Forms.DateTimePicker.BackColor

System.Windows.Forms.DateTimePicker.BackColor

Scheduled Pinned Locked Moved .NET (Core and Framework)
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #1

    On a WinForm I'm working on I want to draw attention to two particular controls. One is a TextBox and I can set the BackColor property. The other is a DateTimePicker, and... " Setting the BackColor has no effect on the appearance of the DateTimePicker. To set the background color for the drop-down calendar of the DateTimePicker, see the CalendarMonthBackground property. " I don't want to set the background color for the drop-down calendar, in fact I'm setting ShowUpDown to true so the drop-down calendar won't be available anyway. This particular application is just a test bed for a class I'm debugging, so it isn't worth deriving a custom DateTimePicker or using a third-party control. That's why this is a rant. However, if anyone has a simple solution I'd like to hear it in case this comes up again in the future... as it likely will. :mad:

    J L 2 Replies Last reply
    0
    • P PIEBALDconsult

      On a WinForm I'm working on I want to draw attention to two particular controls. One is a TextBox and I can set the BackColor property. The other is a DateTimePicker, and... " Setting the BackColor has no effect on the appearance of the DateTimePicker. To set the background color for the drop-down calendar of the DateTimePicker, see the CalendarMonthBackground property. " I don't want to set the background color for the drop-down calendar, in fact I'm setting ShowUpDown to true so the drop-down calendar won't be available anyway. This particular application is just a test bed for a class I'm debugging, so it isn't worth deriving a custom DateTimePicker or using a third-party control. That's why this is a rant. However, if anyone has a simple solution I'd like to hear it in case this comes up again in the future... as it likely will. :mad:

      J Offline
      J Offline
      Jared Bienz MSFT
      wrote on last edited by
      #2

      Why not put the DateTime picker in a Panel that's slightly larger and set the color of the panel? That would give you a bit of a border and you could even 'flash' it if you wanted to.

      My posts may include factual data, educated guesses, personal opinion and dry humor. They should not be treated as an official Microsoft statement.
      Sites of Interest: MSDN Events | US ISV Team Blog
      Are you on Facebook? Check out the group My Company Writes and Sells Software.

      P 1 Reply Last reply
      0
      • J Jared Bienz MSFT

        Why not put the DateTime picker in a Panel that's slightly larger and set the color of the panel? That would give you a bit of a border and you could even 'flash' it if you wanted to.

        My posts may include factual data, educated guesses, personal opinion and dry humor. They should not be treated as an official Microsoft statement.
        Sites of Interest: MSDN Events | US ISV Team Blog
        Are you on Facebook? Check out the group My Company Writes and Sells Software.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Yeah, I might do that, thanks.

        1 Reply Last reply
        0
        • P PIEBALDconsult

          On a WinForm I'm working on I want to draw attention to two particular controls. One is a TextBox and I can set the BackColor property. The other is a DateTimePicker, and... " Setting the BackColor has no effect on the appearance of the DateTimePicker. To set the background color for the drop-down calendar of the DateTimePicker, see the CalendarMonthBackground property. " I don't want to set the background color for the drop-down calendar, in fact I'm setting ShowUpDown to true so the drop-down calendar won't be available anyway. This particular application is just a test bed for a class I'm debugging, so it isn't worth deriving a custom DateTimePicker or using a third-party control. That's why this is a rant. However, if anyone has a simple solution I'd like to hear it in case this comes up again in the future... as it likely will. :mad:

          L Offline
          L Offline
          loricheung
          wrote on last edited by
          #4

          i want a calendar like this : 1、you can type the date by youselfe when you type the data , control can show details eg:you type the month it can show the month in calendar control . 2、we can select the date with mouse no keyboard. how can i do it .somebody can help me ! thanks very much!

          P 1 Reply Last reply
          0
          • L loricheung

            i want a calendar like this : 1、you can type the date by youselfe when you type the data , control can show details eg:you type the month it can show the month in calendar control . 2、we can select the date with mouse no keyboard. how can i do it .somebody can help me ! thanks very much!

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            I don't know of a way. Try posting it as a new message so more people see it.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups