Form Activation?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Right

    #1

    Form Activation?

    Hi,

    I have a pocket pc project and am developing it with C#.
    I want to activate a form which has already created in pocket pc.

    I have looked that there is no activeform property for mobile forms. So i
    cannot activate existing form, i cannot make its visible property true. In
    brief, the solution is possibly creating a new instance of this form. But
    this is not efficient for navigation. Any suggestion for better navigation?

    How can i activate existing form in mobile application?

    Thanks...


  • William Ryan

    #2
    Re: Form Activation?

    Use the Show method. Declare an instance of the form as a static property
    or at the module level if you know that it's only going to be called from
    one form. Then just use Show. You are right, on the PPC, instantiating a
    new instance of a form each time you want to show it can have ghastly
    performance side-effects. You can use Visible for instance, coupled with
    Maximize/Minimize events and do what you need.
    "Adam Right" <adam@adam.co m> wrote in message
    news:ukhQre2uDH A.620@TK2MSFTNG P10.phx.gbl...[color=blue]
    > Hi,
    >
    > I have a pocket pc project and am developing it with C#.
    > I want to activate a form which has already created in pocket pc.
    >
    > I have looked that there is no activeform property for mobile forms. So i
    > cannot activate existing form, i cannot make its visible property true. In
    > brief, the solution is possibly creating a new instance of this form. But
    > this is not efficient for navigation. Any suggestion for better[/color]
    navigation?[color=blue]
    >
    > How can i activate existing form in mobile application?
    >
    > Thanks...
    >
    >[/color]


    Comment

    • Adam Right

      #3
      Re: Form Activation?

      Hi William,

      Can you describe it with a simple example?

      "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
      news:OrULP32uDH A.640@tk2msftng p13.phx.gbl...[color=blue]
      > Use the Show method. Declare an instance of the form as a static property
      > or at the module level if you know that it's only going to be called from
      > one form. Then just use Show. You are right, on the PPC, instantiating a
      > new instance of a form each time you want to show it can have ghastly
      > performance side-effects. You can use Visible for instance, coupled with
      > Maximize/Minimize events and do what you need.
      > "Adam Right" <adam@adam.co m> wrote in message
      > news:ukhQre2uDH A.620@TK2MSFTNG P10.phx.gbl...[color=green]
      > > Hi,
      > >
      > > I have a pocket pc project and am developing it with C#.
      > > I want to activate a form which has already created in pocket pc.
      > >
      > > I have looked that there is no activeform property for mobile forms. So[/color][/color]
      i[color=blue][color=green]
      > > cannot activate existing form, i cannot make its visible property true.[/color][/color]
      In[color=blue][color=green]
      > > brief, the solution is possibly creating a new instance of this form.[/color][/color]
      But[color=blue][color=green]
      > > this is not efficient for navigation. Any suggestion for better[/color]
      > navigation?[color=green]
      > >
      > > How can i activate existing form in mobile application?
      > >
      > > Thanks...
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • pei_world

        #4
        Re: Form Activation?

        ProjectName.Cur rentFormName newForm = new CurrentFormName ();
        newForm.Show();



        "Adam Right" <adam@adam.co m> wrote in message
        news:ukhQre2uDH A.620@TK2MSFTNG P10.phx.gbl...[color=blue]
        > Hi,
        >
        > I have a pocket pc project and am developing it with C#.
        > I want to activate a form which has already created in pocket pc.
        >
        > I have looked that there is no activeform property for mobile forms. So i
        > cannot activate existing form, i cannot make its visible property true. In
        > brief, the solution is possibly creating a new instance of this form. But
        > this is not efficient for navigation. Any suggestion for better[/color]
        navigation?[color=blue]
        >
        > How can i activate existing form in mobile application?
        >
        > Thanks...
        >
        >[/color]


        Comment

        Working...