Form loading speed optimising

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

    Form loading speed optimising

    Hi

    I have a form which does a few operations at start-up which take a long
    while. I would like to divide the operations in two parts, one that can run
    first time form is loaded and second part that only runs once user opens the
    form subsequent time. How do I go about doing this? I presume I can include
    first part of operations in form load method, is there an unhide method to
    run the second part of operations?

    Thanks

    Regards


  • Lloyd Sheen

    #2
    Re: Form loading speed optimising


    "John" <info@nospam.in fovis.co.ukwrot e in message
    news:uNLehj4jIH A.1132@TK2MSFTN GP06.phx.gbl...
    Hi
    >
    I have a form which does a few operations at start-up which take a long
    while. I would like to divide the operations in two parts, one that can
    run first time form is loaded and second part that only runs once user
    opens the form subsequent time. How do I go about doing this? I presume I
    can include first part of operations in form load method, is there an
    unhide method to run the second part of operations?
    >
    Thanks
    >
    Regards
    >
    What happens to the form between the first load and the subsequent load?

    Is it just hidden or is it reloaded?

    LS

    Comment

    • John

      #3
      Re: Form loading speed optimising

      The user can close form the cross button at the top or can press the button
      labelled close which does Me.Close.

      Thanks

      Regards

      "Lloyd Sheen" <a@b.cwrote in message
      news:%23t0eD34j IHA.3400@TK2MSF TNGP03.phx.gbl. ..
      >
      "John" <info@nospam.in fovis.co.ukwrot e in message
      news:uNLehj4jIH A.1132@TK2MSFTN GP06.phx.gbl...
      >Hi
      >>
      >I have a form which does a few operations at start-up which take a long
      >while. I would like to divide the operations in two parts, one that can
      >run first time form is loaded and second part that only runs once user
      >opens the form subsequent time. How do I go about doing this? I presume I
      >can include first part of operations in form load method, is there an
      >unhide method to run the second part of operations?
      >>
      >Thanks
      >>
      >Regards
      >>
      >
      What happens to the form between the first load and the subsequent load?
      >
      Is it just hidden or is it reloaded?
      >
      LS

      Comment

      • Lloyd Sheen

        #4
        Re: Form loading speed optimising


        "John" <info@nospam.in fovis.co.ukwrot e in message
        news:e6x2j84jIH A.4120@TK2MSFTN GP06.phx.gbl...
        The user can close form the cross button at the top or can press the
        button labelled close which does Me.Close.
        >
        Thanks
        >
        Regards
        >
        "Lloyd Sheen" <a@b.cwrote in message
        news:%23t0eD34j IHA.3400@TK2MSF TNGP03.phx.gbl. ..
        >>
        >"John" <info@nospam.in fovis.co.ukwrot e in message
        >news:uNLehj4jI HA.1132@TK2MSFT NGP06.phx.gbl.. .
        >>Hi
        >>>
        >>I have a form which does a few operations at start-up which take a long
        >>while. I would like to divide the operations in two parts, one that can
        >>run first time form is loaded and second part that only runs once user
        >>opens the form subsequent time. How do I go about doing this? I presume
        >>I can include first part of operations in form load method, is there an
        >>unhide method to run the second part of operations?
        >>>
        >>Thanks
        >>>
        >>Regards
        >>>
        >>
        >What happens to the form between the first load and the subsequent load?
        >>
        >Is it just hidden or is it reloaded?
        >>
        >LS
        >
        >
        Ok since you are closing the form do you keep info from the first open
        somewhere? If so this would be the place to hold a boolean value which
        could be checked on the opening of the form. A "firsttime" switch if you
        want.

        How do you control the opening of the form?
        LS

        Comment

        • John

          #5
          Re: Form loading speed optimising

          Hi Lloyd

          Here is my code;

          Dim frm As New frmMyForm
          frm.ShowDialog( )

          "Lloyd Sheen" <a@b.cwrote in message
          news:O0chg65jIH A.1208@TK2MSFTN GP05.phx.gbl...
          >
          "John" <info@nospam.in fovis.co.ukwrot e in message
          news:e6x2j84jIH A.4120@TK2MSFTN GP06.phx.gbl...
          >The user can close form the cross button at the top or can press the
          >button labelled close which does Me.Close.
          >>
          >Thanks
          >>
          >Regards
          >>
          >"Lloyd Sheen" <a@b.cwrote in message
          >news:%23t0eD34 jIHA.3400@TK2MS FTNGP03.phx.gbl ...
          >>>
          >>"John" <info@nospam.in fovis.co.ukwrot e in message
          >>news:uNLehj4j IHA.1132@TK2MSF TNGP06.phx.gbl. ..
          >>>Hi
          >>>>
          >>>I have a form which does a few operations at start-up which take a long
          >>>while. I would like to divide the operations in two parts, one that can
          >>>run first time form is loaded and second part that only runs once user
          >>>opens the form subsequent time. How do I go about doing this? I presume
          >>>I can include first part of operations in form load method, is there an
          >>>unhide method to run the second part of operations?
          >>>>
          >>>Thanks
          >>>>
          >>>Regards
          >>>>
          >>>
          >>What happens to the form between the first load and the subsequent load?
          >>>
          >>Is it just hidden or is it reloaded?
          >>>
          >>LS
          >>
          >>
          >
          Ok since you are closing the form do you keep info from the first open
          somewhere? If so this would be the place to hold a boolean value which
          could be checked on the opening of the form. A "firsttime" switch if you
          want.
          >
          How do you control the opening of the form?
          LS

          Comment

          Working...