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

Preview Pane refresh with form region



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 27th 07, 01:33 PM posted to microsoft.public.outlook.program_vba
shubhangi
external usenet poster
 
Posts: 28
Default Preview Pane refresh with form region

I tried to switch folders in order to refresh preview pane when changes r
made in reading pane,
that worked
Thanks

"Ken Slovak - [MVP - Outlook]" wrote in message
...
You would call it when you have a valid FormRegion object and when you
want to select the form region.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"shubhangi" wrote in message
...
Thanks Ken
But I'm very much new to this form region.Where to invoke
formregion.select.Whenever I use
FormRegion.Select ,it gives me error "Not implemented"
I've below code

MustInherit Class BaseFormRegionWrapper
Implements IDisposable

Protected WithEvents FormRegion As Outlook.FormRegion
Public Event Close As EventHandler
Protected Sub RaiseClose()
RaiseEvent Close(Me, EventArgs.Empty)
End Sub
'IDisposable Members also
End Class

Class ReadMailFormRegionWrapper
Inherits BaseFormRegionWrapper

Shadows WithEvents FormRegion As Outlook.FormRegion
Shadows WithEvents UserForm As Forms.UserForm
Public Sub New(ByVal region As Outlook.FormRegion, ByVal application As
Outlook.Application)
m_Application = application
Me.Item = region.Item
Me.FormRegion = region
Me.UserForm = CType(FormRegion.Form, Forms.UserForm)
End Sub
Private Sub FormRegion_Close() Handles FormRegion.Close
RaiseClose()
End Sub
Public Class FormRegionHookupVB
Implements Outlook.FormRegionStartup

Sub BeforeFormRegionShow(ByVal FormRegion As Outlook.FormRegion)
Implements

Outlook.FormRegionStartup.BeforeFormRegionShow

Dim wrapper As BaseFormRegionWrapper = Nothing
Select Case FormRegion.InternalName
Case NOTE_PREVIEW_PANE_REGION
wrapper = New PreviewPaneMailFormRegionWrapper(FormRegion, Application)
AddHandler wrapper.Close, AddressOf wrapper_Close

End Select
End Sub
End Class




 




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
Custom Form & Preview Pane Scott Halper Outlook - Using Forms 1 October 19th 07 02:03 AM
Outlook Express 6 Message Panes, Lists Pane and Preview Pane brett Outlook Express 5 October 5th 07 02:20 AM
Can you make a form that will preview in the reading pane? derekh Outlook - Using Forms 1 November 13th 06 01:26 PM
Evault custom form & preview pane code [email protected] Outlook and VBA 3 August 31st 06 06:51 PM
Form in the Preview Pane glnbnz Outlook - Using Forms 1 July 29th 06 02:27 PM


All times are GMT +1. The time now is 03: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.