Current date range showing in a calendar view

J

James Turnbol

I am developing an Add-in which creates a filtered view programatically.
The view is based on the standard Day/Week/Month view and filtered by
labels and categories. When I switch to the new filtered view, the
visible date range resets to include the current date.

How can I determine what dates are showing in the Day/Week/Month view
and then apply that to my new filtered view?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
M

Michael Bauer

Hi James,

a little tricky solution that could work only if the user has selected a
range that matches one of the available views via the CommandBar: Open
via CommandBars a new AppointmentItem. For that item the current
selected date is the starttime by default. Then you need the current
view (day, week etc.). With this you can calculate the date range.

Because open and close an AppointmentItem will flicker on your screen,
you could search it´s Inspector window position in the registry, set the
left value temporarly on an big negative value - and don´t forget to
reset it later!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top