Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. form logic/timing

form logic/timing

Scheduled Pinned Locked Moved C#
questionannouncement
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Planker
    wrote on last edited by
    #1

    How do I get my label to update on the form before my program enters the function? currently the form does not update until the download function hits a message box that is in it. String stime = DateTime.Now.ToString(); lblStartDisplay.Text = stime; Download();

    S A 2 Replies Last reply
    0
    • P Planker

      How do I get my label to update on the form before my program enters the function? currently the form does not update until the download function hits a message box that is in it. String stime = DateTime.Now.ToString(); lblStartDisplay.Text = stime; Download();

      A Offline
      A Offline
      aSarafian
      wrote on last edited by
      #2

      Can you explain more thoroughly what you need to achieve?

      1 Reply Last reply
      0
      • P Planker

        How do I get my label to update on the form before my program enters the function? currently the form does not update until the download function hits a message box that is in it. String stime = DateTime.Now.ToString(); lblStartDisplay.Text = stime; Download();

        S Offline
        S Offline
        Stefan Troschuetz
        wrote on last edited by
        #3

        The following should do the trick:

        String stime = DateTime.Now.ToString();
        lblStartDisplay.Text = stime;
        lblStartDisplay.Refresh();
        Download();


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        P 1 Reply Last reply
        0
        • S Stefan Troschuetz

          The following should do the trick:

          String stime = DateTime.Now.ToString();
          lblStartDisplay.Text = stime;
          lblStartDisplay.Refresh();
          Download();


          "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

          www.troschuetz.de

          P Offline
          P Offline
          Planker
          wrote on last edited by
          #4

          thanks that worked.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups