![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am building a C# Outlook add-in. When a new explorer window is
launched I subscribe to the event and resize the window. However, the window refuses to resize and remains the same size as it was launched initially. The initial size is the same as the initial explorer size when outlook is opened for the first time. Is there a way to resize the explorer windows appropriately? I am not facing a problem with inspector windows. I am ensuring that before resizing is done the Window state is set to olNormalized and is not in the Maximized or Minimized state. I am pasting snippet of my code here Outlook.Explorers _exp; Outlook.Inspectors _ins; private void ThisApplication_Startup(object sender, System.EventArgs e) { if (this.ActiveExplorer().WindowState == Microsoft.Office.Interop.Outlook.OlWindowState.olM aximized) { this.ActiveExplorer().WindowState = Microsoft.Office.Interop.Outlook.OlWindowState.olN ormalWindow; } _exp = this.Explorers; _ins = this.Inspectors; _exp.NewExplorer +=new Microsoft.Office.Interop.Outlook.ExplorersEvents_N ewExplorerEventHandler(_exp_NewExplorer); _ins.NewInspector += new Microsoft.Office.Interop.Outlook.InspectorsEvents_ NewInspectorEventHandler(_ins_NewInspector); } void _exp_NewExplorer(Microsoft.Office.Interop.Outlook. Explorer Explorer) { Explorer.Width = 400; Explorer.Height = 400; Explorer.Top = 50; Explorer.Left = 50; } Please help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook/Office 2007 on Vista--Is there any installation parameter to control Explorer Window Colors? | Hollis Paul | Outlook - Installation | 1 | January 3rd 07 12:42 AM |
Open current explorer in new window | Peter Marchert | Outlook and VBA | 4 | December 7th 06 08:55 PM |
Hyperlinks in emails open a folder window, not Internet Explorer | Jerom | Outlook Express | 3 | August 6th 06 05:20 PM |
Reminder window resizing. | Brcobrem | Outlook - Calandaring | 0 | August 2nd 06 08:05 PM |
How do i change the resizing of sent attachments by Outlook? | Bill Burke | Outlook - Installation | 0 | May 1st 06 11:59 AM |