.NET Components for Mobility

Task Dialog

Last post 10-02-2008 3:54 AM by PeterFoot. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-29-2008 12:42 PM

    Task Dialog

    Normal 0 21 false false false DE X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Normale Tabelle"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    Normal 0 21 false false false DE X-NONE X-NONE MicrosoftInternetExplorer4 Hi,

    I use ITH 3.3

    I need in our application the task dialog. And that was the only reason we bought ITH.

    This is the code how I use it:

     OutlookSession = new OutlookSession();

    TaskCollection taskCollection = session.Tasks.Items;

    Task task = taskCollection.AddNew();

    task.Subject = "xxx";

    taskCollection.Add(task);

    task.ShowDialog();

    session.Dispose();

     

    At the first view it works. But now the problem:

    The task dialog is closed. Then our application is turned in background and

    if we try to bring it in front our application does not appears. Only 'Tasks' appears at the top of the window (instead of start)

    The only was to start now the application is to stop it and start it again.

     

    Do I use it in a wrong way?

     

     

  • 09-30-2008 8:26 AM In reply to

    Re: Task Dialog

    Firstly rather than creating and disposing an OutlookSession every time you create a task keep a single OutlookSession active for the life of your application. This issue seems to be specific to Smartphone where the dialog is closed by pressing the back button. If you add the line this.Show() after the task is dismissed your form will be shown again.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 09-30-2008 1:19 PM In reply to

    Re: Task Dialog

    Ok, thanks for you answer.

    But it does not resolve the problem.

    I tested more.

    The task dialog was shown and than closed by the ok button.

    Now the application is turned in background (the x - button of the form is clicked) and I try to bring it to the front by click the .exe. It does not work.

    It looks like that the task dialog will be shown instead of the application. But only 'Tasks" and the ok button of the dialog appears.

     

  • 10-02-2008 3:54 AM In reply to

    Re: Task Dialog

    I'm still investigating this and will respond again shortly once I have done some more tests.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (4 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.