IT Community - Software Programming, Web Development and Technical Support

How to fix the appointments in windows mobile using C#?

This is a discussion on How to fix the appointments in windows mobile using C#? within the C# Programming forums, part of the Software Development category; How to fix the appointments in windows mobile using C#?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2007, 11:16 PM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Question How to fix the appointments in windows mobile using C#?

How to fix the appointments in windows mobile using C#?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 11:17 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: How to fix the appointments in windows mobile using C#?

For appointment class, we have to use this namespace,

using Microsoft.WindowsMobile.PocketOutlook;

Those below codings are written in one button event

Appointment newappoinment = new Appointment();
newappoinment.Subject = textBox1.Text;
//newappoinment.Start = DateTime.Now;
newappoinment.Start = new DateTime(2007, 02, 10, 12, 00, 00);
//newappoinment.Duration = new TimeSpan(01, 00, 00);
newappoinment.Location = textBox2.Text;
newappoinment.End = new DateTime(2007, 02, 10, 15, 00, 00);
newappoinment.ReminderVibrate = true;
newappoinment.ReminderSound = true;
newappoinment.ReminderRepeat = true;
newappoinment.ReminderSet = true;
using (OutlookSession session = new OutlookSession())
{
session.Appointments.Items.Add(newappoinment);
session.Dispose();
}
MessageBox.Show("Appoinment is fixed");
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-09-2007, 06:41 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Default Re: How to fix the appointments in windows mobile using C#?

i am trying to pick an appoinment from appoinment list... But i got some error...
Do u have any sample for pick the appoinment in calender....
__________________
H2O

Without us, no one can survive..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-20-2007, 07:37 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Smile Re: How to fix the appointments in windows mobile using C#?

Hi,
For pick the appointment, we have to use Microsoft.WindowsMobile.PocketOutlook;

Here the code is used for pick the appointment from appointment list
AppointmentCollection apptcollec;
OutlookSession pick = new OutlookSession();
apptcollec = pick.Appointments.Items;
foreach (Appointment appt in apptcollec)
{
textBox1.Text = appt.Start.ToShortDateString() + " " + appt.Start.ToShortTimeString();
textBox2.Text = appt.End.ToShortDateString() + " " + appt.End.ToShortTimeString();
textBox3.Text = appt.Location;
textBox4.Text = appt.Subject;
}


Hope u got clear by use this...
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Mobile Tweaks prasannavigneshr Windows Mobile 163 12-23-2008 08:02 PM
Windows Mobile - Interview FAQ prasannavigneshr Interview Questions & Answers and Tips 15 01-24-2008 04:48 AM
Answering Machine for Windows Mobile S.Vinothkumar Windows Mobile 1 09-06-2007 08:43 AM
How to Soft Reset Windows Mobile 5.0 ? theone Windows Mobile 0 07-17-2007 03:42 AM
New T-Mobile phone runs Windows Mobile 6 vadivelanvaidyanathan The Lounge 0 05-22-2007 08:19 AM


All times are GMT -7. The time now is 11:16 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0