Member Avatar for Bei_Mu_tian

hellooooo People!

well I have the following problem: I want to recreate something like the Office-"adressbook" in my application, so the user can search through his/her outlook contacts directly, without first opening the outlook adressbook dialogue. That means that I have to search through my contacts in a Datagrid...but I don't know how to go at it...

this right here is the only thing I've found in that direction...

Try
            Dim contact As Microsoft.Office.Interop.Outlook.ContactItem = CType(contactItems.Find(String.Format _
                ("[FirstName]='{0}' and [LastName]={1}", "Vorname", "Nachname")), Microsoft.Office.Interop.Outlook.ContactItem)

            If contact IsNot Nothing Then
                contact.Display()
            Else
                MessageBox.Show("The contact information was not found.")
            End If

        Catch ex As Exception
            Meldung("Es ist ein Fehler aufgetreten." & vbNewLine & "Button1_Click_1::" & ex.Message, MessageBoxIcon.Error)
        End Try

does any one have an idea how I can do this?...

thanks a lot in advance!

Recommended Answers

All 2 Replies

Member Avatar for Bei_Mu_tian

thanks a lot. :)
might be able to use some of that!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.