|
-
Feb 5th, 2009, 12:30 PM
#1
Thread Starter
New Member
Two Problems: Hiding Start Menu; Editing contacts in POutlook.
Ok my first question is this: How can I hide the Start menu in windows mobile 5 and 6 using system states and such through VB .NET 2008? I was shown how to do it, but I forgot how.
Also for Pocket Outlook.
I want to use a "for each" to loop through every contact and add each contact to a new category that I choose. How can I do that?
I played around with it, I just dont know what to " For Each" and I dont know how, once I loop through the contacts to change the category. So How do I loop through them and how do I add them to a category?
Thanks in advance for your help.
Just so you know this is some code I came up with. But I dont know if its correct:
--------------------------------------
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.WindowsMobile.PocketOutlook
In the button click command:
Dim outlookSession As New OutlookSession()
Dim contactCollection As ContactCollection = outlookSession.Contacts.Items
Dim contact As Contact = contactCollection(0)
For Each contact in contacts
contact.categories = "Holiday"
contact.update
Next
outlookSession.Dispose()
--------------------------
Any ideas?
Last edited by jdiperla; Feb 5th, 2009 at 12:39 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|