VSTO 2008 how to bind Form Region controls to Item data fields

Status
Not open for further replies.
E

escamoteur

Hi,

perhaps it's so obvious that I don't see it, but I searching the web now for about an hour and don't find an answer.

I'm using Outlook 2007.

So far I used VS2005 and designed my Form Regions with the Outlook Form Designer.

Now I wanted to try the new VS2008 and I'm excited how easy the generation of an Add-In is BUT:

I can add a new Form Region, fine, but how do I add Controls that are bound to the Item Data Fields like a text control that is

bound the the "Subject" field of its Outlook Item??

Also how can I add "Outlook Specific controls" to a Form created with the VS2008 designer? Like the Body Control, or the Outlook

Categorie control?

Please give a pointer!

Tom
 
Hi,

nobody there who can help me?

Tom

"escamoteur" <mail@burkharts.net> schrieb im Newsbeitrag news:5A559CB9-BC02-4998-AD21-9B649439A92B@microsoft.com...
> Hi,

> perhaps it's so obvious that I don't see it, but I searching the web now for about an hour and don't find an answer.

> I'm using Outlook 2007.

> So far I used VS2005 and designed my Form Regions with the Outlook Form Designer.

> Now I wanted to try the new VS2008 and I'm excited how easy the generation of an Add-In is BUT:

> I can add a new Form Region, fine, but how do I add Controls that are bound to the Item Data Fields like a text control that is
> bound the the "Subject" field of its Outlook Item??

> Also how can I add "Outlook Specific controls" to a Form created with the VS2008 designer? Like the Body Control, or the Outlook
> Categorie control?

> Please give a pointer!

> Tom
>
 
See if that helps... this is in your formRegion.vb

Private Sub frDigIt_FormRegionShowing(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.FormRegionShowing

Dim mailItem As Outlook.MailItem

If TypeOf (Me.OutlookItem) Is Outlook.MailItem Then

If Me.OutlookFormRegion.FormRegionMode = _

Outlook.OlFormRegionMode.olFormRegionRead Then

mailItem = CType(Me.OutlookItem, _

Outlook.MailItem)

Label1.Text = "This form region contains information " & _

"about " & mailItem.Subject

End If

End If

End Sub

escamoteur wrote on Wed, 05 May 2010 16:00
> Hi,

> nobody there who can help me?
> Tom

> "escamoteur" <mail@burkharts.net> schrieb im Newsbeitrag news:5A559CB9-BC02-4998-AD21-9B649439A92B@microsoft.com...
> > Hi,
> > perhaps it's so obvious that I don't see it, but I searching the web now for about an hour and don't find an answer.
> > I'm using Outlook 2007.
> > So far I used VS2005 and designed my Form Regions with the Outlook Form Designer.
> > Now I wanted to try the new VS2008 and I'm excited how easy the generation of an Add-In is BUT:
> > I can add a new Form Region, fine, but how do I add Controls that are bound to the Item Data Fields like a text control that is
> > bound the the "Subject" field of its Outlook Item??
> > Also how can I add "Outlook Specific controls" to a Form created with the VS2008 designer? Like the Body Control, or the Outlook
> > Categorie control?
> > Please give a pointer!
> > Tom
> >


www.gloVapor.com Electronic Cigarette manufacturer. Nicotine Juice, vaporizers, batteries and much more....
 
Hi Tom,

I believe you can't use the VS designer to get Outlook specific controls.

If you want those you still need to design the form in Outlook and import it

via the New Form Region command.

Regards,

Casper

"escamoteur" wrote:


> Hi,

> nobody there who can help me?
> Tom

> "escamoteur" <mail@burkharts.net> schrieb im Newsbeitrag news:5A559CB9-BC02-4998-AD21-9B649439A92B@microsoft.com...
> > Hi,
> > perhaps it's so obvious that I don't see it, but I searching the web now for about an hour and don't find an answer.
> > I'm using Outlook 2007.
> > So far I used VS2005 and designed my Form Regions with the Outlook Form Designer.
> > Now I wanted to try the new VS2008 and I'm excited how easy the generation of an Add-In is BUT:
> > I can add a new Form Region, fine, but how do I add Controls that are bound to the Item Data Fields like a text control that is
> > bound the the "Subject" field of its Outlook Item??
> > Also how can I add "Outlook Specific controls" to a Form created with the VS2008 designer? Like the Body Control, or the Outlook
> > Categorie control?
> > Please give a pointer!
> > Tom
> >

> .
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 2
X Highlight block of text in an outlook mail using c#2008 vsto Outlook VBA and Custom Forms 1
M c# vsto Outlook.ApplicationEvents_11_NewMailEx Outlook VBA and Custom Forms 1
M Develop for OL2003 on OL2007 machine using VS2008 and VSTO? Outlook VBA and Custom Forms 1
A Not able to load an add-in for outlook 2007 developed in VSTO 2005 Outlook VBA and Custom Forms 2
T VSTO Outlook add-in: Categories not displaying correctly Outlook VBA and Custom Forms 3
O VSTO - Outlook Add-In - Get GAL data Outlook VBA and Custom Forms 1
M VSTO deployment? Outlook VBA and Custom Forms 1
K Outlook VSTO Add-in not visible in Trust Center after installing Outlook VBA and Custom Forms 1
M VSTO C#: How do I declare an application scope variable? Outlook VBA and Custom Forms 2
M Will a VSTO C# Outlook 2007 Add-in work on Outlook 2010? Outlook VBA and Custom Forms 1
S VSTO calling unmanged function Outlook VBA and Custom Forms 3
W My VSTO 3.0 Outlook addin doesn’t load Outlook VBA and Custom Forms 1
G Interop or VSTO or ? Outlook VBA and Custom Forms 2
M VSTO 2007 Addin auto-disabled on one machine but not another on installation? Outlook VBA and Custom Forms 1
N VSTO outlook 2007 addin installation problem Outlook VBA and Custom Forms 1
O Third-party VSTO 2005 SE plug-in for Outlook 2007: what should I signwith a publisher certificate? Outlook VBA and Custom Forms 3
O Outlook VSTO 2005 plug-in installer: CLSID = ? Outlook VBA and Custom Forms 3
O using VSTO to get Available Mailboxes Outlook VBA and Custom Forms 11
M Outlook2007 and VSTO, handle the Click on the Save Button in the IPM.Note dialog HOWTO? Outlook VBA and Custom Forms 4
M VSTO Outlook2007 Addin. After switching from 3.5 to 2.0 Framework i get "'MSB3185: EntryPoint not sp Outlook VBA and Custom Forms 1
E Opening WinForm in Outlook 2003 VSTO Addin with Wordmail enabled Outlook VBA and Custom Forms 1
C Problem installing VSTO AddIn on Vista Outlook VBA and Custom Forms 3
P outlook 2008 search box criteria couldn't be saved Using Outlook 2
P BCM 2013, Microsoft SQL Server 2008 R2 (SP2), attachment issue n database size BCM (Business Contact Manager) 2
M BCM in Outlook reports maximum database size to 4GB despite SQL Server 2008 R2 BCM (Business Contact Manager) 1
N Outlook refuses to show embedded images on Citrix Windows 2008 R2 Using Outlook 29
B can not establish BCM 2010 connection to Shared DB on SQL 2008 Express BCM (Business Contact Manager) 4
T Install BCM on SBS 2008 Standard server BCM (Business Contact Manager) 1
A BCM 2007 Shared Database on member Server 2008 in SBS 2008 Domain BCM (Business Contact Manager) 1
V Business Contact Manager 2007 and SQL Server 2008 BCM (Business Contact Manager) 3
C Cannot seem to use BCM Database Tool on SQL Server 2008 BCM (Business Contact Manager) 4
Z Integration BCM SBS 2008 BCM (Business Contact Manager) 6
D Installing SQL Server 2008 Express with BCM installed BCM (Business Contact Manager) 3
K Auto-linking emails by default shared DB BCM 2007 on SQL 2008 BCM (Business Contact Manager) 4
U Outlook Addin Creation using Visual Studio 2008 Outlook VBA and Custom Forms 1
R Deployment issue for Office 2003 add-in using VS 2008. Outlook VBA and Custom Forms 1
B Integrating BCM database with MSAccounting 2008 BCM (Business Contact Manager) 3

Similar threads

Back
Top