Menu

How to scroll to 7 AM time programatically?

2014-04-30
2023-08-22
  • Joao Paulo de Lima Braga

    Hi there,

    I´m trying to scrool the calendar to 7 am time programatically, because I won´t need to use the range 12 am / 6 am. But I tried a lot of approaches but no success so far.

    I need this because it´s very boring always scrolling the calendar to display the working hours (8am ~ 6 pm).

    I will really appreciate any help.

    Thanks in advance.

    Joao Paulo

     
  • Michael Luchtman

    Ever get an answer to this?

     
  • Joao Paulo de Lima Braga

    Hello,

    I will check my code and I will get back here to answer your question.

     
  • Mark E Bogan

    Mark E Bogan - 2020-10-21

    Has anyone figured out a way to scroll to a specific time within the control yet?

     
    • Jim Hunter

      Jim Hunter - 2023-08-22

      might vary for you but this worked for me

                  var unit = calendarView.GetTimeUnit(_dayToShow.AddHours(14));
                  calendarView.EnsureVisible(unit);
      
       
  • Jim Hunter

    Jim Hunter - 2023-08-22

    Nine year re-union party: did anyone ever figure out how to do this? :)

    EDIT: This worked for me (showing a single day review type calendar).

                var unit = calendarView.GetTimeUnit(_dayToShow.AddHours(14));
                calendarView.EnsureVisible(unit);
    
     

    Last edit: Jim Hunter 2023-08-22

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.