Hello,
I am using a RecurrenceDialog. Is it possible to change the times in the appointment time start and end time drop downs? The drop downs are defaulting to 1/2 hour increments, but I would like to make them 15 minute increments etc... If the appointment passed in has a start time with an increment of 15 ie 1:15 then the drop down for the start time is blank, and there is no way to select a time of 1:15. Being able to change the times in the drop downs would solve this problem. Is there anyway to do that?
Any help is appreciated.
Thanks,
Tom
I'm not sure if this post has anything to do with the original thread, so maybe I am misunderstanding the question. Obviously I don't have any details about your custom dialog, but generally speaking, an Appointment dialog presents the Appointment's StartDateTime and EndDateTime to the user as a TextBox or ComboBox; the Text property of the control is set to the formatted date/time; you can refer to MSDN documentation for direction on how to do that. When saving the user's changes, you can use the DateTime.Parse method to turn the text back into a date/time.
Hi Brain,
How to fill the Appointment starttime,endtime and durations durations in my own scheduledialog.
Please give me an idea on this.
Vishnu
Generally speaking, the stock appointment and recurrence dialogs are not extensible, they are patterned after the same dialogs seen in MS Outlook. The reason for this is that there are just too many possibilities for us to even attempt to handle them all cleanly (out of all the many requests like this one, no two have ever been exactly the same). The recommended solution to problems like this is to create your own dialog, cancel the appropriate event (BeforeDisplayAppointmentRecurrenceDialog in this case), and display your custom dialog in its place.
Having said that, The RecurrenceDialog class is publicly exposed, and derives from System.Windows.Forms.Form, so you can theoretically modify certain things about it, although you would be doing so at your own risk since we cannot support such changes. For example, the times in the dropdown you mention here are presented as ValueListItems in an UltraComboEditor's Items collection, so you could clear that collection and repopulate it with different values.