Month calendar control problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bWFib25k?=

    Month calendar control problem

    Hi

    Using a month calendar control so that my user can select a start and end
    date for a range that will be used in a SQL query.

    Problem.....if user selects a date in one month and then scrolls to the next
    month the "date" moves with the scroll......i.e . click on 3rd Feb and then
    move to March, without any further selection being clicked the selected date
    has become 3rd March....

    How can I click on a single date in one moth and then move to another month
    without that selected date being changed to the same day in the new month.

    Any help appreciated

    Regards

    Michael Bond
  • zacks@construction-imaging.com

    #2
    Re: Month calendar control problem

    On Mar 27, 9:30 am, mabond <mab...@discuss ions.microsoft. comwrote:
    Hi
    >
    Using a month calendar control so that my user can select a start and end
    date for a range that will be used in a SQL query.
    >
    Problem.....if user selects a date in one month and then scrolls to the next
    month the "date" moves with the scroll......i.e . click on 3rd Feb and then
    move to March, without any further selection being clicked the selected date
    has become 3rd March....
    >
    How can I click on a single date in one moth and then move to another month
    without that selected date being changed to the same day in the new month.
    >
    Any help appreciated
    Are you increasing the value of the MaxSelectionCou nt property? The
    default is 7.

    Comment

    • =?Utf-8?B?bWFib25k?=

      #3
      Re: Month calendar control problem

      Hi Zacks

      yes....I've got it set at 56 at present....

      Michael


      "zacks@construc tion-imaging.com" wrote:
      On Mar 27, 9:30 am, mabond <mab...@discuss ions.microsoft. comwrote:
      Hi

      Using a month calendar control so that my user can select a start and end
      date for a range that will be used in a SQL query.

      Problem.....if user selects a date in one month and then scrolls to the next
      month the "date" moves with the scroll......i.e . click on 3rd Feb and then
      move to March, without any further selection being clicked the selected date
      has become 3rd March....

      How can I click on a single date in one moth and then move to another month
      without that selected date being changed to the same day in the new month.

      Any help appreciated
      >
      Are you increasing the value of the MaxSelectionCou nt property? The
      default is 7.
      >

      Comment

      • zacks@construction-imaging.com

        #4
        Re: Month calendar control problem

        On Mar 27, 11:50 am, mabond <mab...@discuss ions.microsoft. comwrote:
        Hi Zacks
        >
        yes....I've got it set at 56 at present....
        >
        Michael
        >
        >
        >
        "za...@construc tion-imaging.com" wrote:
        On Mar 27, 9:30 am, mabond <mab...@discuss ions.microsoft. comwrote:
        Hi
        >
        Using a month calendar control so that my user can select a start and end
        date for a range that will be used in a SQL query.
        >
        Problem.....if user selects a date in one month and then scrolls to the next
        month the "date" moves with the scroll......i.e . click on 3rd Feb and then
        move to March, without any further selection being clicked the selected date
        has become 3rd March....
        >
        How can I click on a single date in one moth and then move to another month
        without that selected date being changed to the same day in the new month.
        >
        Any help appreciated
        >
        Are you increasing the value of the MaxSelectionCou nt property? The
        default is 7.
        Have you checked the values of Selection Start and SelectionEnd
        properties after selecting the end date?

        Comment

        • =?Utf-8?B?bWFib25k?=

          #5
          Re: Month calendar control problem

          Yes

          try this

          place a month calendar on a form
          run the app
          scroll to Feb 2008
          click on 3rd Feb
          scroll to March 2008

          What you now see is that the 3rd March is highlighted as if selected. How do
          you stop that happening and retaining the 3rd of Feb as the selected date
          when you scroll to the next month?

          Michael


          "zacks@construc tion-imaging.com" wrote:
          On Mar 27, 11:50 am, mabond <mab...@discuss ions.microsoft. comwrote:
          Hi Zacks

          yes....I've got it set at 56 at present....

          Michael



          "za...@construc tion-imaging.com" wrote:
          On Mar 27, 9:30 am, mabond <mab...@discuss ions.microsoft. comwrote:
          Hi
          Using a month calendar control so that my user can select a start and end
          date for a range that will be used in a SQL query.
          Problem.....if user selects a date in one month and then scrolls to the next
          month the "date" moves with the scroll......i.e . click on 3rd Feb and then
          move to March, without any further selection being clicked the selected date
          has become 3rd March....
          How can I click on a single date in one moth and then move to another month
          without that selected date being changed to the same day in the new month.
          Any help appreciated
          Are you increasing the value of the MaxSelectionCou nt property? The
          default is 7.
          >
          Have you checked the values of Selection Start and SelectionEnd
          properties after selecting the end date?
          >

          Comment

          • Miro

            #6
            Re: Month calendar control problem

            Maybe the solution is to actaully have 2 calendars on the form,
            one that just shows the dropdown that is not connected to anything,
            and the other that is.

            On selection of the one calendar, you can set the date of the other
            depending on code.

            Just a thought
            -Never tried it though.


            "mabond" <mabond@discuss ions.microsoft. comwrote in message
            news:790DEDB5-81DD-42E8-AFAC-BB424A973043@mi crosoft.com...
            Yes
            >
            try this
            >
            place a month calendar on a form
            run the app
            scroll to Feb 2008
            click on 3rd Feb
            scroll to March 2008
            >
            What you now see is that the 3rd March is highlighted as if selected. How
            do
            you stop that happening and retaining the 3rd of Feb as the selected date
            when you scroll to the next month?
            >
            Michael
            >
            >
            "zacks@construc tion-imaging.com" wrote:
            >
            >On Mar 27, 11:50 am, mabond <mab...@discuss ions.microsoft. comwrote:
            Hi Zacks
            >
            yes....I've got it set at 56 at present....
            >
            Michael
            >
            >
            >
            "za...@construc tion-imaging.com" wrote:
            On Mar 27, 9:30 am, mabond <mab...@discuss ions.microsoft. comwrote:
            Hi
            >
            Using a month calendar control so that my user can select a start
            and end
            date for a range that will be used in a SQL query.
            >
            Problem.....if user selects a date in one month and then scrolls to
            the next
            month the "date" moves with the scroll......i.e . click on 3rd Feb
            and then
            move to March, without any further selection being clicked the
            selected date
            has become 3rd March....
            >
            How can I click on a single date in one moth and then move to
            another month
            without that selected date being changed to the same day in the new
            month.
            >
            Any help appreciated
            >
            Are you increasing the value of the MaxSelectionCou nt property? The
            default is 7.
            >>
            >Have you checked the values of Selection Start and SelectionEnd
            >properties after selecting the end date?
            >>

            Comment

            Working...