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

New Class inheriting the Inspector Class



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 5th 08, 06:11 PM posted to microsoft.public.outlook.program_vba
gp
external usenet poster
 
Posts: 13
Default New Class inheriting the Inspector Class

I would like to create a custom Inspector to read Outlook messasges in,
ideally inherting the existing Insector class and allowing me to add
additional controls, like text boxes and buttons to the Inspector form. Is
this possible and if so how do I do it?

Thanks.
GP
  #2  
Old September 5th 08, 06:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default New Class inheriting the Inspector Class

I don't believe that's possible.

Normally one would intercept the NewInspector event of the Inspectors
collection and proxy any information from the Inspector.CurrentItem into a
separate form that has whatever controls you want shown, in addition to any
controls normally on the Inspector window. Then you close the Inspector and
show your form as a proxy for the Inspector.

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


"GP" wrote in message
...
I would like to create a custom Inspector to read Outlook messasges in,
ideally inherting the existing Insector class and allowing me to add
additional controls, like text boxes and buttons to the Inspector form. Is
this possible and if so how do I do it?

Thanks.
GP


  #3  
Old September 5th 08, 08:39 PM posted to microsoft.public.outlook.program_vba
gp
external usenet poster
 
Posts: 13
Default New Class inheriting the Inspector Class

I have already done that to some extent, by creating a form and filling text
boxes with info from the messages. But I want to take it a step futher and
make use of the Inspector Class's inherent ability to display Rich Text and
HTML formatted message content. I though a good way would be to try and
inherit the Inspector Class and add the other bits I need to it. If that is
not possible, can you think of another way I can display either either Rich
Text or HTML formatted content on a Windows form?

Thanks GP

  #4  
Old September 6th 08, 03:08 PM posted to microsoft.public.outlook.program_vba
gp
external usenet poster
 
Posts: 13
Default New Class inheriting the Inspector Class

Ken, I solved the problem by adding a WebBrowser control to my form and
setting the DocumentText property to equal the HTMLBody property of my
message. Works like a dream for HTML messages. I could use RichTextBox
control for Rich Text if necessary.

Thanks for your help
GP

 




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
Where is message class located? Orionssong Outlook - General Queries 1 December 4th 07 12:56 PM
Window class names BobS Outlook - Using Forms 0 November 5th 07 07:09 PM
Changing folder class Id bbnimda Outlook and VBA 2 October 30th 07 01:47 PM
Class Terminates without notice George Hester Outlook and VBA 6 February 4th 07 09:03 AM
Message class Josianne Outlook - Using Forms 0 April 10th 06 04:06 PM


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