Compact Framework: Aprire il calendario di outlook, i contatti e le attività, tramite visual basic net e c# in ambiente windows mobile 5.0
Tramite la classe process, possiamo avviare il programma outlook per aprire il calendario, contatti, le attività, basterà cambiare l'argomento da passare al file.
Di seguito si riporta un frammento di codice.
'calendario
Vb.Net
Dim
proc.EnableRaisingEvents =
proc As New System.Diagnostics.Process()False
proc.StartInfo.FileName =
"poutlook.exe"
proc.StartInfo.Arguments =
"calendar -vd"
proc.Start()
C#
System.Diagnostics.
proc.EnableRaisingEvents =
proc.StartInfo.FileName =
proc.StartInfo.Arguments =
proc.Start();
Process proc = new System.Diagnostics.Process();false;"poutlook.exe";"calendar -vd";
'contatti
Vb.Net
proc.EnableRaisingEvents =
Dim proc As New System.Diagnostics.Process()False
proc.StartInfo.FileName =
"poutlook.exe"
proc.StartInfo.Arguments =
"contacts "
proc.Start()
C#
System.Diagnostics.
proc.EnableRaisingEvents =
proc.StartInfo.FileName =
proc.StartInfo.Arguments =
proc.Start();
Process proc = new System.Diagnostics.Process();false;"poutlook.exe";"contacts ";
Vb.Net
proc.EnableRaisingEvents =
Dim proc As New System.Diagnostics.Process()False
proc.StartInfo.FileName =
"poutlook.exe"
proc.StartInfo.Arguments =
"tasks"
proc.Start()
C#
System.Diagnostics.
proc.EnableRaisingEvents =
proc.StartInfo.FileName =
proc.StartInfo.Arguments =
proc.Start();
Process proc = new System.Diagnostics.Process();false;"poutlook.exe";"tasks";'Attività