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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Resize Issue in outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 31st 08, 10:43 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 5
Default Resize Issue in outlook

My custom compose form have Message control on the left side & my
activex control on the right side (alongwith To, CC on the upper
part). I have set "Resize with layout" property of Message control to
unchecked. I want to resize my activex control to the width of
inspector. So I tried to set "Resize with layout" property of my
activex control to checked, but that didn't work. I have also tried
code snippet from MS site, but it also failed. Code snippet for office
2007 is as follows -

Dim olkCtrl As Outlook.OlkControl
olkCtrl =
CurrentInsp.ModifiedFormPages("Message").Controls( "IE1")
olkCtrl.EnableAutoLayout = True
olkCtrl.HorizontalLayout =
Outlook.OlHorizontalLayout.olHorizontalLayoutGrow
olkCtrl.VerticalLayout =
Outlook.OlVerticalLayout.olVerticalLayoutGrow

My aim is, my compose mail's Message control is of fixed size & I want
to resize my activex control viz. IE1 to the height & width of form. I
am using VSTO/ vb 2005 for office 2003 & 2007.

I also tried the following code snippet in outlook 2003 with sp3 and
it work fine but for outlook 2007,my message control shrink down.

sub item_Write
Item.GetInspector.ModifiedFormPages("Message").IE1 .LayoutFlags = 68
end sub


Please help me.

Thanks in advance
  #2  
Old February 1st 08, 04:40 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Resize Issue in outlook

EnableAutoLayout, HorizontalLayout, and VerticalLayout are properties that apply to the OlkControl base class for the new Olk* controls for Outlook 2007 form regions. As the Help topic for the OlkControl class explains, its member properties do not apply to Forms 2.0 controls, which is what you're apparently using, given your code below. If you're building a VSTO add-in for Outlook 2007, why not move to form regions?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


wrote in message ...
My custom compose form have Message control on the left side & my
activex control on the right side (alongwith To, CC on the upper
part). I have set "Resize with layout" property of Message control to
unchecked. I want to resize my activex control to the width of
inspector. So I tried to set "Resize with layout" property of my
activex control to checked, but that didn't work. I have also tried
code snippet from MS site, but it also failed. Code snippet for office
2007 is as follows -

Dim olkCtrl As Outlook.OlkControl
olkCtrl =
CurrentInsp.ModifiedFormPages("Message").Controls( "IE1")
olkCtrl.EnableAutoLayout = True
olkCtrl.HorizontalLayout =
Outlook.OlHorizontalLayout.olHorizontalLayoutGrow
olkCtrl.VerticalLayout =
Outlook.OlVerticalLayout.olVerticalLayoutGrow

My aim is, my compose mail's Message control is of fixed size & I want
to resize my activex control viz. IE1 to the height & width of form. I
am using VSTO/ vb 2005 for office 2003 & 2007.

I also tried the following code snippet in outlook 2003 with sp3 and
it work fine but for outlook 2007,my message control shrink down.

sub item_Write
Item.GetInspector.ModifiedFormPages("Message").IE1 .LayoutFlags = 68
end sub


Please help me.

Thanks in advance

 




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 2007] Image resize limited to 66 ratio in HTML gregoire.cousin Outlook - General Queries 5 September 23rd 08 10:46 AM
Can I resize Outlook 2003's Reminders window? bret Outlook - Calandaring 2 July 29th 06 06:18 PM
Custom Form resize issue VB Outlook - Using Forms 0 May 24th 06 08:34 PM
Resize images attached in Outlook 2003 DougInSkagitValley Outlook - Installation 1 March 27th 06 12:06 AM
How do I resize the font in my Microsoft Outlook inbox? bruceelliott Outlook - Installation 0 February 26th 06 07:09 PM


All times are GMT +1. The time now is 04:06 AM.


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.