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

unable to use custom control in form regions



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 20th 06, 03:22 PM posted to microsoft.public.outlook.program_forms
Nikolas
external usenet poster
 
Posts: 34
Default unable to use custom control in form regions

Hi,

Our company has created a custom control that displays and annotates tiff
files amongst other image files. While designing a COM Add-in for Outlook
2007 and using form regions we added our control to view incoming and
outcoming faxes.

The steps we do a
- add the custom annotation control to a form region
- initialise it in the CustomFormRegion class (using VSTO 2005 SE) and C#
- call custom functions from our control such as EnableMenuItems() etc.
(all menus of our control looks as expected)

(so far everything is fine)
- pass in our annotation control the MailItem Attachment as a parameter
to display it.

The attachment does not get displayed and we get the error msg: "Attempted
to read or write protected memory. This is often an indication that other
memory is corrupt."

This we tried:
- Added our custom annotation control to a legacy custom form and worked
fine when tried to view an image file using a VB Script
- used the same text box control as the legacy Message form and
displayed the tiff file as expected (like it does in the legacy Message form)
- tried to open any tiff file and not the MailItem Attachment with our
annotation control from the form region and failed again. The new file had
read/write access.

Any more info just ask.

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 Form Regions and C++ Jeffrey Add-ins for Outlook 0 July 7th 06 07:01 PM
How can I run a macro from a custom button control AA Outlook - Using Forms 1 June 20th 06 10:35 PM
DTPicker replacement for Due Date control on Custom Task Form Michelle Outlook - Using Forms 0 May 30th 06 05:22 PM
Unable to send my custom form in Outlook 2003 Hayley Outlook - Using Forms 2 January 20th 06 05:28 PM
How to handling Custom Form Control Event in VB Com Add-In? Raphaël ZHOU \(Jadiam\) Outlook - Using Forms 1 January 11th 06 07:31 AM


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