Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adding and displaying a contact (Read 1782 times)
elpuerco
Junior Member
**
Offline


Time?  What's time matta
to a pig?

Posts: 94
Joined: Oct 2nd, 2007
Adding and displaying a contact
Oct 16th, 2007 at 8:38am
Print Post  
Hi, is there a demo in VB.net to show how to create, add ans show a contact?

I do not have C# installed only VB.NET!

Code
Select All
Dim con As Contact = New Contact

con.FirstName = "Joe Blogsl"

app.Contacts.Add(con)
 



This creates the contact but how to I display it when viewing the appointment like when I double click and the appointment form is displayed?

Thnx

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Adding and displaying a contact
Reply #1 - Oct 16th, 2007 at 9:29am
Print Post  
In order to display the contacts in the Calendar, you have to create them, add them to the Schedule, select them for grouping and choose the appropriate grouping mode. Here is how it goes:

Code
Select All
' Create the contact
Dim con As New Contact
con.FirstName = "Joe Blogsl"

' Add the contact to the schedule
Calendar1.Schedule.Contacts.Add(con)

' Select the contact for grouping
Calendar1.Contacts.Add(con)

' Turn grouping by contacts on
Calendar1.GroupType = GroupType.GroupByContacts

' Associated the contact with particular items
app.Contacts.Add(con) 


Of course you can group by more than one contacts at a time, by creating and adding more Contact objects.

Meppy
  
Back to top
 
IP Logged
 
elpuerco
Junior Member
**
Offline


Time?  What's time matta
to a pig?

Posts: 94
Joined: Oct 2nd, 2007
Re: Adding and displaying a contact
Reply #2 - Oct 16th, 2007 at 3:04pm
Print Post  
Cool!  Thanks.


Thnx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint