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. >
|