How to open Outlook contact window in vb.net and C#

How to open Outlook contact window in .net

If you want to add new contact information in outlook form vb.net application through outlook contact window, then you can use this code sample.
you need to add a reference to the Microsoft Outlook Object Library.

[VB.Net]

Private Sub OpenOutlookContactForm()
' Create an Outlook application.
Dim outApplication As Outlook.Application = New Outlook.Application()
 
' Get the namespace and the logon.
Dim outNamSpace As Outlook.NameSpace = outApplication.GetNamespace("MAPI")
 
' Create a new contact item.
Dim NewContact As Outlook.ContactItem = outApplication.CreateItem(Outlook.OlItemType.olContactItem)
NewContact.Display(True)
 
outApplication = Nothing
outNamSpace = Nothing
NewContact = Nothing
 
End Sub

[C#]

private void OpenOutlookContactForm()
{
	// Create an Outlook application.
	Outlook.Application outApplication = new Outlook.Application();
 
	// Get the namespace and the logon.
	Outlook.NameSpace outNamSpace = outApplication.GetNamespace("MAPI");
 
	// Create a new contact item.
	Outlook.ContactItem NewContact = outApplication.CreateItem(Outlook.OlItemType.olContactItem);
	NewContact.Display(true);
 
	outApplication = null;
	outNamSpace = null;
	NewContact = null;
 
}