2013-03-01 73 views
0

我正在創建一個新的Outlook功能區,可以創建新的會議/約會邀請。客戶請求能夠最小化新的約會窗口,但該按鈕當前被禁用,焦點無法從窗口移開。有沒有辦法啓用最小化按鈕或從約會窗口改變焦點?最小化Outlook約會條目

Outlook.Application outlook = new Outlook.Application(); 
Outlook.AppointmentItem appointment = (Outlook.AppointmentItem)outlook.CreateItem(Outlook.OlItemType.olAppointmentItem); 
appointment.ReminderSet = true; 
appointment.BusyStatus = Outlook.OlBusyStatus.olBusy; 
appointment.ReminderMinutesBeforeStart = 15; 
appointment.Duration = 30; 
appointment.MeetingStatus = Outlook.OlMeetingStatus.olMeeting; 
appointment.Display(true); 

回答

0

AppointmentItem的.Display函數需要一個參數。它被設置爲「真實」,我認爲是顯示錶單。 「真」實際上是激活的模式選項。從Display()函數中刪除「True」解決了這個問題。