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

Tags: , , ,

Associate custom IPM with a custom form





 
 
Thread Tools Display Modes
  #1  
Old June 4th 08, 06:04 PM posted to microsoft.public.outlook.program_forms
Peter Manesis
external usenet poster
 
Posts: 4
Default Associate custom IPM with a custom form

Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance
Ads
  #2  
Old June 5th 08, 05:50 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Associate custom IPM with a custom form

You would need to change the value of the item's MessageClass property to IPM.Note.Request. It is the value of that property that governs what form Outlook uses to display the item.

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


"Peter Manesis" wrote in message ...
Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance

  #3  
Old June 5th 08, 10:46 PM posted to microsoft.public.outlook.program_forms
Peter Manesis
external usenet poster
 
Posts: 4
Default Associate custom IPM with a custom form

Thanks for taking time to answer my question, but that is not the difficult
part. I know how to do this, but what I don't know (and I cannot imagine) is
how to tell Outlook that this custom form (e.x. RequestForm) is the one that
should be opened when an IPM.Note.Request email (of inbox) is double clicked.
I guess that it should be done with some code and maybe using an Outlook
event like "BeforeItemOpen".

"Sue Mosher [MVP-Outlook]" wrote:

You would need to change the value of the item's MessageClass property to IPM.Note.Request. It is the value of that property that governs what form Outlook uses to display the item.

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


"Peter Manesis" wrote in message ...
Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance


  #4  
Old June 5th 08, 10:54 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Associate custom IPM with a custom form

You would need to publish a custom Outlook form with the message class IPM.Note.Request to the Organizational Forms library on the Exchange server or to each user's Personal Forms library. Your original post -- "This add-in will open a custom email form when a custom button is pressed." -- suggests that you've already done that, because if you hadn't you wouldn't be able to open such a custom email form.

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


"Peter Manesis" wrote in message ...
Thanks for taking time to answer my question, but that is not the difficult
part. I know how to do this, but what I don't know (and I cannot imagine) is
how to tell Outlook that this custom form (e.x. RequestForm) is the one that
should be opened when an IPM.Note.Request email (of inbox) is double clicked.
I guess that it should be done with some code and maybe using an Outlook
event like "BeforeItemOpen".

"Sue Mosher [MVP-Outlook]" wrote:

You would need to change the value of the item's MessageClass property to IPM.Note.Request. It is the value of that property that governs what form Outlook uses to display the item.



"Peter Manesis" wrote in message ...
Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance


  #5  
Old June 5th 08, 11:51 PM posted to microsoft.public.outlook.program_forms
Peter Manesis
external usenet poster
 
Posts: 4
Default Associate custom IPM with a custom form

Ok, I am a little bit confused with custom forms and custom MessageClass. Let
me explain.... What I have done since now is to create a custom form (e.x.
RequestForm) using Visual Studio2005 Add-in solution. When I click the custom
button on toolbar, this RequestForm shows up and an IPM.Note object is
created in the constructor of the form, then I set its MessageClass to
IPM.Note.Request and some other custom properties. Finally the object
IPM.Note.Request is sent to the recipient. And here is the problem: Let say
that I have received an IPM.Note.Request email (in the inbox) and I want to
read it or edit it with the RequestForm. How I am supposed to do that with
Visual Studio 2005 because I don't want in any way to use VBscript or
outlook's custom forms (I mean .oft), I just want the solution to be made
100% with Visual Studio. Maybe it is to simple and I don't get it, but how to
publish this RequestForm using Visual Studio 2005 add-in solution?

I hope I was explanatory
Thanks for your time


"Sue Mosher [MVP-Outlook]" wrote:

You would need to publish a custom Outlook form with the message class IPM.Note.Request to the Organizational Forms library on the Exchange server or to each user's Personal Forms library. Your original post -- "This add-in will open a custom email form when a custom button is pressed." -- suggests that you've already done that, because if you hadn't you wouldn't be able to open such a custom email form.

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


"Peter Manesis" wrote in message ...
Thanks for taking time to answer my question, but that is not the difficult
part. I know how to do this, but what I don't know (and I cannot imagine) is
how to tell Outlook that this custom form (e.x. RequestForm) is the one that
should be opened when an IPM.Note.Request email (of inbox) is double clicked.
I guess that it should be done with some code and maybe using an Outlook
event like "BeforeItemOpen".

"Sue Mosher [MVP-Outlook]" wrote:

You would need to change the value of the item's MessageClass property to IPM.Note.Request. It is the value of that property that governs what form Outlook uses to display the item.



"Peter Manesis" wrote in message ...
Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance


  #6  
Old June 6th 08, 01:12 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Associate custom IPM with a custom form

I may be just as confused as you are, because it is not possible to create an Outlook custom form with a Visual Studio 2005 add-in. Custom forms are created either with the form designer built into Outlook or (much more rarely) with C++ and Extended MAPI. What you can do -- with Outlook 2007 *only* -- is create a form region. That would not apply to your solution, given that you said you planned to support Outlook 2003 and 2007.

So is "this RequestForm" a Windows form? If so, please don't call it a "custom form" because that term has a distinctive meaning in an Outlook context.

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


"Peter Manesis" wrote in message ...
Ok, I am a little bit confused with custom forms and custom MessageClass. Let
me explain.... What I have done since now is to create a custom form (e.x.
RequestForm) using Visual Studio2005 Add-in solution. When I click the custom
button on toolbar, this RequestForm shows up and an IPM.Note object is
created in the constructor of the form, then I set its MessageClass to
IPM.Note.Request and some other custom properties. Finally the object
IPM.Note.Request is sent to the recipient. And here is the problem: Let say
that I have received an IPM.Note.Request email (in the inbox) and I want to
read it or edit it with the RequestForm. How I am supposed to do that with
Visual Studio 2005 because I don't want in any way to use VBscript or
outlook's custom forms (I mean .oft), I just want the solution to be made
100% with Visual Studio. Maybe it is to simple and I don't get it, but how to
publish this RequestForm using Visual Studio 2005 add-in solution?

I hope I was explanatory
Thanks for your time


"Sue Mosher [MVP-Outlook]" wrote:

You would need to publish a custom Outlook form with the message class IPM.Note.Request to the Organizational Forms library on the Exchange server or to each user's Personal Forms library. Your original post -- "This add-in will open a custom email form when a custom button is pressed." -- suggests that you've already done that, because if you hadn't you wouldn't be able to open such a custom email form.




"Peter Manesis" wrote in message ...
Thanks for taking time to answer my question, but that is not the difficult
part. I know how to do this, but what I don't know (and I cannot imagine) is
how to tell Outlook that this custom form (e.x. RequestForm) is the one that
should be opened when an IPM.Note.Request email (of inbox) is double clicked.
I guess that it should be done with some code and maybe using an Outlook
event like "BeforeItemOpen".

"Sue Mosher [MVP-Outlook]" wrote:

You would need to change the value of the item's MessageClass property to IPM.Note.Request. It is the value of that property that governs what form Outlook uses to display the item.



"Peter Manesis" wrote in message ...
Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance


  #7  
Old June 6th 08, 09:11 AM posted to microsoft.public.outlook.program_forms
Peter Manesis
external usenet poster
 
Posts: 4
Default Associate custom IPM with a custom form

Yes you are right, I should not call the 'windows form' as 'custom form', it
was confusing. Actually I was afraid from the beginning that the answer to my
question whould be that and now it's true. So I will have to try VBscript or
so. Thanks again for your time.

"Sue Mosher [MVP-Outlook]" wrote:

I may be just as confused as you are, because it is not possible to create an Outlook custom form with a Visual Studio 2005 add-in. Custom forms are created either with the form designer built into Outlook or (much more rarely) with C++ and Extended MAPI. What you can do -- with Outlook 2007 *only* -- is create a form region. That would not apply to your solution, given that you said you planned to support Outlook 2003 and 2007.

So is "this RequestForm" a Windows form? If so, please don't call it a "custom form" because that term has a distinctive meaning in an Outlook context.

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


"Peter Manesis" wrote in message ...
Ok, I am a little bit confused with custom forms and custom MessageClass. Let
me explain.... What I have done since now is to create a custom form (e.x.
RequestForm) using Visual Studio2005 Add-in solution. When I click the custom
button on toolbar, this RequestForm shows up and an IPM.Note object is
created in the constructor of the form, then I set its MessageClass to
IPM.Note.Request and some other custom properties. Finally the object
IPM.Note.Request is sent to the recipient. And here is the problem: Let say
that I have received an IPM.Note.Request email (in the inbox) and I want to
read it or edit it with the RequestForm. How I am supposed to do that with
Visual Studio 2005 because I don't want in any way to use VBscript or
outlook's custom forms (I mean .oft), I just want the solution to be made
100% with Visual Studio. Maybe it is to simple and I don't get it, but how to
publish this RequestForm using Visual Studio 2005 add-in solution?

I hope I was explanatory
Thanks for your time


"Sue Mosher [MVP-Outlook]" wrote:

You would need to publish a custom Outlook form with the message class IPM.Note.Request to the Organizational Forms library on the Exchange server or to each user's Personal Forms library. Your original post -- "This add-in will open a custom email form when a custom button is pressed." -- suggests that you've already done that, because if you hadn't you wouldn't be able to open such a custom email form.




"Peter Manesis" wrote in message ...
Thanks for taking time to answer my question, but that is not the difficult
part. I know how to do this, but what I don't know (and I cannot imagine) is
how to tell Outlook that this custom form (e.x. RequestForm) is the one that
should be opened when an IPM.Note.Request email (of inbox) is double clicked.
I guess that it should be done with some code and maybe using an Outlook
event like "BeforeItemOpen".

"Sue Mosher [MVP-Outlook]" wrote:

You would need to change the value of the item's MessageClass property to IPM.Note.Request. It is the value of that property that governs what form Outlook uses to display the item.


"Peter Manesis" wrote in message ...
Hi everybody

I want to create an add-in for Outlook 2003 and 2007 with Visual Studio
2005. This add-in will open a custom email form when a custom button is
pressed. Suppose that I have managed that. My question is how to make this
custom form to be opened automatically when one of these custom incoming
emails is clicked. In other words I want the code for my add-in in order to
make my custom form to be opened for viewing or even editing these custom
emails (e.x. IPM.Note.Request).

Thanks in advance



 




Thread Tools
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
Item_Send: How to generate a non-custom form message from custom f supportusa Outlook - Using Forms 3 April 9th 07 11:37 PM
importing custom fields into a custom form susan lasalle Outlook - Using Contacts 1 January 16th 07 10:01 PM
Emailing a contact vCard with custom form loses all custom info Kim Outlook - Using Contacts 7 April 27th 06 01:21 AM
How to access custom field in Custom Form by C# Minh Nguyen Outlook - Using Forms 3 April 24th 06 04:32 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 04:01 PM


All times are GMT +1. The time now is 11:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Credit Cards UK - Mortgage Calculator - Remortgages - Vinos tintos - Watch House Online