A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

New Explorer Window not resizing



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 7th 07, 03:17 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 1
Default New Explorer Window not resizing

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 12:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.