Option page is too small !

Add-in Express™ Support Service
That's what is more important than anything else

Option page is too small !
The option page size can't be change from 413 x 458 
Eddy MINET




Posts: 4
Joined: 2006-09-26
The option page size can't be change from 413 x 458 and my Outlook Option Pages window is about 573 x 389.

So, the right and bottom sides are missing.

You can have a look at this picture :

User added an image

Outlook Version : MS Outlook 11.8010.8036 SP2 - French
Addin-Express .NET for VSTO V 2.06 b2387
Posted 26 Sep, 2006 09:41:05 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Eddy.

Try to override the OnResize protected method of the property page as shown below:

VB.NET
Protected Overrides Sub OnResize(ByVal e As System.EventArgs)
Me.Size = New Size(573, 389)
MyBase.OnResize(e)
End Sub
C#
protected override void OnResize(EventArgs e)
{
this.Size = new Size(573, 389);
base.OnResize(e);
}
Posted 26 Sep, 2006 11:56:33 Top
Eddy MINET




Posts: 4
Joined: 2006-09-26
Thank you very much Sergey !

This method works fine. The last thing is to know wether the window is a 413 x 458 or a 573 x 389 size type ... :|

I've not find yet wath cause this difference ... I tried to change Window Resolution but it doesn't works ...
Posted 26 Sep, 2006 12:10:51 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Eddy, as far as I know, the size of the property page depends on the MS Office localization.
Posted 26 Sep, 2006 12:24:53 Top