0

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!

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Bei_Mu_tian
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.