Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: SelectionChange Event in Outlook Calender

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

SelectionChange Event in Outlook Calender
lg 27.09.2006 11:10:02
Hi,
I am writing a Addin for Outlook in C#. In the calender in Outlook, I am
looking to retrieve the date a user clicks on (i.e. if the user selects any
date on the calender weather it has an appointment or not). I am able to
catch the event for when the user selects a date by using the SelectionChange
event but I am not able to know what date was selected ? Is it possible to
find the date selected and if so how ? Thanks.
Re: SelectionChange Event in Outlook Calender
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 27.09.2006 12:01:16
Outlook fires no event when the user selects a date/time range. You can, however, use CommandBars methods to execute the New button from the toolbar/menu. That will create a new appointment using the user's selected date/time range. You can get the dates from that appointment and then discard it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"lg" <lg[ at ]discussions.microsoft.com> wrote in message news:B9EA63D3-52BA-4334-9E66-04EC2AD4CA68[ at ]microsoft.com...
[Quoted Text]
> Hi,
> I am writing a Addin for Outlook in C#. In the calender in Outlook, I am
> looking to retrieve the date a user clicks on (i.e. if the user selects any
> date on the calender weather it has an appointment or not). I am able to
> catch the event for when the user selects a date by using the SelectionChange
> event but I am not able to know what date was selected ? Is it possible to
> find the date selected and if so how ? Thanks.
Re: SelectionChange Event in Outlook Calender
lg 27.09.2006 13:56:03
When you click on a date on the calender (the yellow cells), the
"SelectChange" event seems to get fired (it also gets fired when you select
between different mail items in your mail box and possiblely or items in
different folders aswell). I will try opening a new appointment item, reading
the date and discarding it again but will this not cause an appointment item
to flash up on the screen each time the user clicks on a differnet date in
the calender ?

"Sue Mosher [MVP-Outlook]" wrote:

[Quoted Text]
> Outlook fires no event when the user selects a date/time range. You can, however, use CommandBars methods to execute the New button from the toolbar/menu. That will create a new appointment using the user's selected date/time range. You can get the dates from that appointment and then discard it.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
> "lg" <lg[ at ]discussions.microsoft.com> wrote in message news:B9EA63D3-52BA-4334-9E66-04EC2AD4CA68[ at ]microsoft.com...
> > Hi,
> > I am writing a Addin for Outlook in C#. In the calender in Outlook, I am
> > looking to retrieve the date a user clicks on (i.e. if the user selects any
> > date on the calender weather it has an appointment or not). I am able to
> > catch the event for when the user selects a date by using the SelectionChange
> > event but I am not able to know what date was selected ? Is it possible to
> > find the date selected and if so how ? Thanks.
>
Re: SelectionChange Event in Outlook Calender
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 27.09.2006 14:10:36
Yes, but you can close it as soon as you get the dates from it. Unless the user has a really slow system, they shouldn't notice.

"lg" <lg[ at ]discussions.microsoft.com> wrote in message news:BDA1B0EA-0AD1-4954-9CD7-45D82A8F8149[ at ]microsoft.com...
[Quoted Text]
> When you click on a date on the calender (the yellow cells), the
> "SelectChange" event seems to get fired (it also gets fired when you select
> between different mail items in your mail box and possiblely or items in
> different folders aswell). I will try opening a new appointment item, reading
> the date and discarding it again but will this not cause an appointment item
> to flash up on the screen each time the user clicks on a differnet date in
> the calender ?
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> Outlook fires no event when the user selects a date/time range. You can, however, use CommandBars methods to execute the New button from the toolbar/menu. That will create a new appointment using the user's selected date/time range. You can get the dates from that appointment and then discard it.
>>
>> "lg" <lg[ at ]discussions.microsoft.com> wrote in message news:B9EA63D3-52BA-4334-9E66-04EC2AD4CA68[ at ]microsoft.com...
>> > Hi,
>> > I am writing a Addin for Outlook in C#. In the calender in Outlook, I am
>> > looking to retrieve the date a user clicks on (i.e. if the user selects any
>> > date on the calender weather it has an appointment or not). I am able to
>> > catch the event for when the user selects a date by using the SelectionChange
>> > event but I am not able to know what date was selected ? Is it possible to
>> > find the date selected and if so how ? Thanks.
>>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net