RE: Redirect

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: deshetty (deshetty_at_discussions.microsoft.com)
Date: 10/21/04


Date: Thu, 21 Oct 2004 07:49:13 -0700

Darren,

It makes sense what've said. Can you provide some sample code that would
demonstrate loading forms once and reusing them. Where would you load the
forms that are used multiple times?

Thanks.

"Darren Shaffer" wrote:

> Robert,
>
> When architecting a CF app with multiple forms, you should consider the
> expense of loading and showing forms in your navigational model and the
> member variables that need to be accessed across forms during design time. I
> see a lot of new CF developers always using form.Show() and form.Close() and
> attempting to pass or call back to previous forms for member variables. This
> creates a lot of messy code and form loading overhead. Here are some ideas
> to think about:
>
> 1. For forms that are likely to be shown multiple times in the course of
> your application's use cases, make them singletons and only load them once.
> Show and Hide them when needed. Performance is excellent.
> 2. Make a single Globals class that is also a singleton that contains
> member variables and/or methods that more than one form require access to.
> This keeps you from passing state information back and forth between forms.
>
> For an even more advanced coverage of form management in CF apps, see this
> excellent article on MSDN:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfuiframework.asp
>
> -Darren
>
>
> "robert" wrote:
>
> >
> > How can i link (with a link and a button) from one Form of a Smart Device
> > Application to another Form of that Application, especially with parameters?
> >
> > robert



Relevant Pages

  • problem loading php_gd2.dll php5/apache2.0+
    ... Wondering if anyone can recomend some sample code for dynamically ... I have tried setting the extension dir in php.ini, and loading the GD ... module from there when apache is started, but it won't load. ...
    (comp.lang.php)
  • Re: [opensuse] How to set up LIRC?
    ... and if not then loading it and setting it to load at boot time. ... I Googled around and learned a bit about loading kernel modules but nothing answered this question. ... Well further Google attempts and a visit to the LIRC website seemed to indicate that I need another module loaded in the kernel called lirc_serial. ...
    (SuSE)
  • Re: Hover buttons not loading quickly & Java Security Warning
    ... Hover buttons will never load on my PC, and the same applies to many other's. ... Java applets are one of the slowest loading media to hit a website, and many users disable Java for performance and/or security reasons. ... This is the web, not print, and font sizes can only be suggested, not controlled. ...
    (microsoft.public.frontpage.client)
  • Re: Next Version of GDI+ (maybe GDI+ 2.0)
    ... loading and manipulating of such files isn't lightning fast unless you have really powerfull dedicated hardware. ... to see whole image you need to read whole image, and then eventualy generate a smaller sample for display. ... BUT to have this smaler sample you need to load ALL the pixels of oryginal image. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: [RFC PATCH 2/2] dm: only initialize full request_queue for request-based device
    ...   - a table and its attributes are bound to the block device on resume ... Your patch makes that loading table affects the block device, ... Table load sequence is: ... Blocking allocation inside exclusive _hash_lock can cause deadlock; ...
    (Linux-Kernel)