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. Visual Basic
  4. DateTimePicker

DateTimePicker

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 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.
  • A Offline
    A Offline
    ayeleteric
    wrote on last edited by
    #1

    Is it possible to show the calendar screen of a DateTimePicker control by clicking an image instead of clicking the control's downward triangle? I cannot find a property from the class for showing the calender screen. please help. Thanks.

    Eric H.

    D 1 Reply Last reply
    0
    • A ayeleteric

      Is it possible to show the calendar screen of a DateTimePicker control by clicking an image instead of clicking the control's downward triangle? I cannot find a property from the class for showing the calender screen. please help. Thanks.

      Eric H.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      AFAIK DateTimePicker exposes nothing about that down arrow. I can suggest either to go for a third party control or override OnPaint for the form and Paint an image on the down arrow.

      A 1 Reply Last reply
      0
      • D dan sh

        AFAIK DateTimePicker exposes nothing about that down arrow. I can suggest either to go for a third party control or override OnPaint for the form and Paint an image on the down arrow.

        A Offline
        A Offline
        ayeleteric
        wrote on last edited by
        #3

        Thank you, I will solve the problem by writting the following DateTimePicker1.Select() SendKeys.Send("%{DOWN}") If other suggestion, please advise

        Eric H.

        D 1 Reply Last reply
        0
        • A ayeleteric

          Thank you, I will solve the problem by writting the following DateTimePicker1.Select() SendKeys.Send("%{DOWN}") If other suggestion, please advise

          Eric H.

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          My bad. I thought you need to replace the down arrow of the datetimepicker with some other image. Your requirement seems different. Although, still not clear to me.

          A 1 Reply Last reply
          0
          • D dan sh

            My bad. I thought you need to replace the down arrow of the datetimepicker with some other image. Your requirement seems different. Although, still not clear to me.

            A Offline
            A Offline
            ayeleteric
            wrote on last edited by
            #5

            I will try to be clearer. When you click the DateTimePicker control, at run time, the calendar is popping-up, doesn't it? What I needed, instead of clicking the DateTimePicker control to get this popup window, is to click on a button and to get the same screen. My target was to put on a button an icon of calendar and when the user click the button he will get the popup screen. I hope it was clear now.

            Eric H.

            H 1 Reply Last reply
            0
            • A ayeleteric

              I will try to be clearer. When you click the DateTimePicker control, at run time, the calendar is popping-up, doesn't it? What I needed, instead of clicking the DateTimePicker control to get this popup window, is to click on a button and to get the same screen. My target was to put on a button an icon of calendar and when the user click the button he will get the popup screen. I hope it was clear now.

              Eric H.

              H Offline
              H Offline
              Henry Minute
              wrote on last edited by
              #6

              You can always build your own control/dialog, using MonthCalendar and pop that up in response to the button click.

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              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