Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ' 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) ' Set some common properties. NewContact.FirstName = "Author" NewContact.FullName = "Author Code" NewContact.Title = "Client" NewContact.Birthday = Convert.ToDateTime("5/4/1969") NewContact.CompanyName = "AuthorCode" NewContact.Department = "Development" NewContact.Body = "Sample" NewContact.FileAs = "Authorcode" NewContact.Email1Address = "email@example.com" NewContact.Email2Address = "firstname.lastname@example.org" NewContact.MailingAddress = "NewDelhi India" NewContact.Subject = "Contact crated from vb.net" NewContact.JobTitle = "Engineer" NewContact.Save() outApplication = Nothing outNamSpace = Nothing NewContact = Nothing End Sub
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: